Google Cloud Shell and Private GitHub Repositories [How To]

Google Cloud Shell on Google Cloud Platform

On the Google Cloud Platform, Google provides Google Cloud Shell for free to easily manage your services. Whenever you launch the shell, on the backend, the platform creates a new VM instance to drive the shell. This shell instance will if there is more than 30 minutes of inactivity. Because of this, the persistence between sessions is limited. However there is 5GB worth of storage within you $HOME (~) directory which persist between sessions.

Using Private GitHub Repositories

To use private GitHub repositories, first you have to generate a new SSH key (or use an existing one) and make sure to add it to GitHub.

Because of the limited persistence of Google Cloud Shell, adding the SSH key to the SSH agent will not persist between sessions. To get around this, create a SSH config file ~/.ssh/config and add the following lines to it.

    User git
    IdentityFile ~/.ssh/id_rsa

Replace ~/.ssh/id_rsa with your SSH key want to use with GitHub. Now whenever you use git to interact with your GitHub repositories, the SSH key is automatically used. And because the config is stored within your home directory, this will persist between all your Google Cloud Shell sessions.

All the LEGO Star Wars Rogue One Sets [December 2016]

Rogue One: A Star Wars Story

If you haven’t seen the new Star Wars movie Rogue One, do yourself a favour and go see it right away. If you have seen it, go see it again! The new Star Wars movie introduces a number of new ships and vehicles to the Star Wars universe including the U-wing, TIE Striker and Imperial Assault Hovertank, shown below in their LEGO Star Wars form.

Continue reading “All the LEGO Star Wars Rogue One Sets [December 2016]”