Skip to content

Instantly share code, notes, and snippets.

View emicklei's full-sized avatar
💭
working on Melrose Music Programming

Ernest Micklei emicklei

💭
working on Melrose Music Programming
View GitHub Profile
@manekinekko
manekinekko / open-in-cloud-shell.md
Last active December 29, 2022 17:19
gcloud.tips: use the Google Cloud Shell to clone and edit a github repository

Open a github repository in the Cloud Shell

The Google Cloud Shell gives you a handy and quick Shell access to your Cloud instance. One thing you may not know is that you can use the Cloud Shell to clone and edit a Github project. Let's see how.

The trick here is to just call the following URL: https://console.cloud.google.com/cloudshell/open with the following parameters:

  1. git_repo: this is the URL to your github repository
  2. open_in_editor: this would be the file you want to open in the editor
  3. page=editor: this tells the cloud shell to open the code editor
@reiki4040
reiki4040 / signal.go
Created October 2, 2014 14:38
signal handling example for golang
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {