Skip to content

Instantly share code, notes, and snippets.

View tombler's full-sized avatar

Tom Griffey tombler

  • Mexico City, Mexico
View GitHub Profile
@tombler
tombler / static_ec2.sh
Last active November 27, 2016 22:12 — forked from dserodio/tunnel.sh
Shell script to start/stop an EC2 instance to use as a ssh tunnel
#!/bin/bash
# Bash script to start/stop instances and open SSH tunnel.
# Ideal for instances where you want to persist storage and be able to start/stop the instance on demand
# Forked from https://gist.github.com/dserodio/aaf4c62311fe5d6fbfaf
# requires Python 2.7 to parse JSON response
# requires the aws package locally -- sudo apt-get install awscli
# Run 'aws configure' first and enter access key and secret key
# Make sure to set region!
# Beware! You will still be charged for EBS while the instance is stopped: https://aws.amazon.com/ebs/pricing/
@tombler
tombler / react_environment.sh
Created May 1, 2017 20:56
Bash script to set up a React dev environment with Webpack and Babel.
#!/bin/bash
# Based on this tutorial, with a few minor changes:
# https://www.codementor.io/tamizhvendan/beginner-guide-setup-reactjs-environment-npm-babel-6-webpack-du107r9zr
# Globals
dev_directory="/path/to/your/development/directory"
index_html="
<html>