This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |