Skip to content

Instantly share code, notes, and snippets.

@rothgar
rothgar / searches
Created May 10, 2019 16:40
chrome://settings/searchEngines
# 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 / 😁.gif
Last active April 25, 2019 05:23
😁
😁.gif
@rothgar
rothgar / up.gif
Last active April 25, 2019 05:22
Up
up.gif
@rothgar
rothgar / you.gif
Last active April 25, 2019 05:22
You
you.gif
@rothgar
rothgar / give.gif
Last active April 25, 2019 05:22
Give
give.gif
@rothgar
rothgar / never.gif
Last active April 25, 2019 05:22
Never
never.gif
@rothgar
rothgar / install.sh
Created April 4, 2018 17:07
Code on Chromebook
#!/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 November 29, 2017 05:19
Linux server debugging in 60 seconds
#!/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 August 16, 2017 05:40
multi-container-pod example
apiVersion: "v1"
kind: Pod
metadata:
name: test
labels:
name: test
spec:
containers:
- name: nginx
image: nginx