Skip to content

Instantly share code, notes, and snippets.

View mr-daydream's full-sized avatar

Luke Samuels mr-daydream

View GitHub Profile
@mr-daydream
mr-daydream / gist:cb1d833cb4be24dcf2d51b6e44cb876a
Created December 8, 2016 22:31
List out InstanceID or PrivateIP of all AWS instances with a certain name (requires the aws-cli and jq packages)
aws ec2 describe-instances --filters "Name=tag:Name,Values=<regex>" | jq '.Reservations[].Instances[].InstanceId'
aws ec2 describe-instances --filters "Name=tag:Name,Values=<regex>" | jq '.Reservations[].Instances[].PrivateIpAddress'
@mr-daydream
mr-daydream / listcolors.sh
Created January 12, 2016 04:40
256 color code outputter (for tmux and whatnot)
#found here: http://superuser.com/questions/285381/how-does-the-tmux-color-palette-work
#Re-spelled "color" the 'Murican way
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolor${i}\n"
done