Skip to content

Instantly share code, notes, and snippets.

@fxfactorial
Created November 7, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxfactorial/fc7a19902380a3acae97677aa2f360eb to your computer and use it in GitHub Desktop.
Save fxfactorial/fc7a19902380a3acae97677aa2f360eb to your computer and use it in GitHub Desktop.
ZONE="us-west2-b"
INSTANCE_NAME="fastai-class-fall-2018"
function fastai_ssh() {
gcloud compute ssh \
--zone=$ZONE \
jupyter@$INSTANCE_NAME \
-- -L 8080:localhost:8080
}
function fastai_start() {
gcloud compute instances start $INSTANCE_NAME --zone=$ZONE
}
function fastai_stop() {
gcloud compute instances stop $INSTANCE_NAME --zone=$ZONE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment