Skip to content

Instantly share code, notes, and snippets.


Justin Garrison rothgar

Block or report user

Report or block rothgar

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
# run with time
# Checks how long it takes to schedule 100 nginx pods
kubectl scale deploy nginx --replicas 101
while [ $replicas -lt 101 ]; do
replicas=$(kubectl get deploy nginx -o template --template={{.status.availableReplicas}})
rothgar / searches
Created May 10, 2019
View searches
# Search for container images on docker hub
Docker Hub, dhub,
# Search for emoji
emojipedia, emoji,
# search Amazon
amazon, amz,
rothgar /
Created Apr 4, 2018
Code on Chromebook
# Follow instructions here to enable dev mode and start VM
sudo apt-get update
sudo apt-get install -y libasound2 libxss1 wget
wget -qO- | tar xvz
# Launch code
rothgar /
Created Nov 29, 2017
Linux server debugging in 60 seconds
# Taken from
# initialize array
# add systemctl command if it's installed
command -v systemctl >/dev/null && COMMANDS+=('systemctl list-units --state=failed')
# add more commands
COMMANDS+=('dmesg | tail'
'vmstat 1'
You can’t perform that action at this time.