Skip to content

Instantly share code, notes, and snippets.

@erik-pantheon
erik-pantheon / tunnel.sh
Created May 3, 2016 21:37 — forked from dserodio/tunnel.sh
Shell script to start/stop an EC2 instance to use as a ssh tunnel
#!/bin/bash
# Start/stop an EC2 instance to use as a ssh tunnel
# requires the aws package locally -- sudo apt-get install awscli
#
# usage: ./tunnel.sh start (spin up EC2 and create the tunnel)
# ./tunnel.sh stop (terminate the EC2 instance to save money)
# ./tunnel.sh resume (in case your tunnel is interrupted but the EC2 instance is still running)
# CHANGE THE PARAMETERS BELOW
@erik-pantheon
erik-pantheon / gist:37c35d4cebad6a0eaf08
Created January 28, 2016 15:43
rsync on pantheon
ENV='ENV'
SITE='SITEID'
read -sp "Your Pantheon Password: " PASSWORD
if [[ -z "$PASSWORD" ]]; then
echo "Woops, need password"
exit
fi
while [ 1 ]