Skip to content

Instantly share code, notes, and snippets.

Luke Samuels mr-daydream

  • Baltimore, MD
Block or report user

Report or block mr-daydream

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mr-daydream
mr-daydream / gist:cb1d833cb4be24dcf2d51b6e44cb876a
Created Dec 8, 2016
List out InstanceID or PrivateIP of all AWS instances with a certain name (requires the aws-cli and jq packages)
View gist:cb1d833cb4be24dcf2d51b6e44cb876a
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 Jan 12, 2016
256 color code outputter (for tmux and whatnot)
View listcolors.sh
#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
You can’t perform that action at this time.