Skip to content

Instantly share code, notes, and snippets.

🤷‍♂
fine

Justin Garrison rothgar

🤷‍♂
fine
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
@rothgar
rothgar / searches
Created May 10, 2019
chrome://settings/searchEngines
View searches
# Search for container images on docker hub
Docker Hub, dhub, https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=%s&starCount=0
# Search for emoji
emojipedia, emoji, https://emojipedia.org/search/?q=%s
# search Amazon
amazon, amz, http://www.amazon.com/s?k=%s
@rothgar
rothgar / install.sh
Created Apr 4, 2018
Code on Chromebook
View install.sh
#!/bin/sh
# Follow instructions here to enable dev mode and start VM
# https://github.com/lstoll/cros-crostini/blob/master/README.md
sudo apt-get update
sudo apt-get install -y libasound2 libxss1 wget
wget -qO- https://go.microsoft.com/fwlink/?LinkID=620884 | tar xvz
# Launch code
@rothgar
rothgar / wtf.sh
Created Nov 29, 2017
Linux server debugging in 60 seconds
View wtf.sh
#!/bin/bash
# Taken from https://medium.com/netflix-techblog/linux-performance-analysis-in-60-000-milliseconds-accc10403c55
# initialize array
COMMANDS=('uptime')
# 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'
@rothgar
rothgar / milti-container.pod.yaml
Created Aug 16, 2017
multi-container-pod example
View milti-container.pod.yaml
apiVersion: "v1"
kind: Pod
metadata:
name: test
labels:
name: test
spec:
containers:
- name: nginx
image: nginx
You can’t perform that action at this time.