Skip to content

Instantly share code, notes, and snippets.

View florin-andrei-curbside's full-sized avatar

Florin Andrei florin-andrei-curbside

View GitHub Profile
@florin-andrei-curbside
florin-andrei-curbside / gist:519584408725f8b8dc5dc6d009263c91
Last active August 18, 2016 23:59
run a command in all AWS EC2 regions in your account
#!/usr/bin/env bash
for reg in `aws ec2 describe-regions --query 'Regions[].[RegionName]' --output=text`; do
echo $reg
# do something
done
@florin-andrei-curbside
florin-andrei-curbside / gist:e56bbc3aef40f062b76de52f2045ce89
Created August 18, 2016 20:18
screen "Cannot open your terminal"
sudo su -
su - ${user}
screen -r some-label
# Cannot open your terminal '/dev/pts/0' - please check.
script /dev/null
screen -r some-label
# success!