Skip to content

Instantly share code, notes, and snippets.

View reganjohnson's full-sized avatar

Regan Johnson reganjohnson

View GitHub Profile
@reganjohnson
reganjohnson / 00_ebs_mount.config
Created April 15, 2016 21:55
Mount EBS using ElasticBeanstalk ebextensions
container_commands:
01_clear_if_mounted:
command: 'if ! mount | grep /media/ebs_volume > /dev/nul; then rm -rf /media/ebs_volume; fi'
02_attach_volume:
command: 'aws ec2 attach-volume --region us-east-1 --volume-id vol-98654c46 --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --device /dev/sdh'
test: '[ ! -b /dev/sdh ]'
03_twiddle_fingers:
command: 'sleep 15'
@reganjohnson
reganjohnson / gist:1f6d93c4e3d09e4d5903
Last active March 19, 2018 14:21
Set Default Text Editor as Sublime 3
First, let's create the $ subl command
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Another option is to use duti (http://duti.org / https://github.com/moretension/duti).
Run brew install duti, save a file like this as ~/.duti:
com.sublimetext.3 public.plain-text all
com.sublimetext.3 public.unix-executable all