Skip to content

Instantly share code, notes, and snippets.

kelsin /
Last active Feb 27, 2021
Restart all deployments in a k8s cluster
# When ready to do it for real, remove the "echo"
kubectl get deployments --all-namespaces | \
tail -n +2 | \
awk '{print $1, $2}' | \
while read ns dep; do \
echo kubectl rollout restart -n $ns deploy/$dep;
View Dockerfile.ubuntu.test
FROM ubuntu:18.04
# Install git and curl
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install node repo
kelsin /
Created May 1, 2018
Blizzard Colors

Blizzard Colors

A Blizzard Themed 16 Color Ansi Palette


When possible it's always better to use the hex code, or set your ansi terminal colors and use those instead of using the 256 color approximations.

| Ansi Number | XTerm 256 Number | Color | Name | Hex | Lore |

kelsin /
Created Sep 21, 2016
Example API Response from my ember app
curl -H "Accept: application/json+ember"
View gist:0dabdabacf7be696b1af
- hosts: local
become: no
- name: Update Homebrew
homebrew: update_homebrew=yes upgrade_all=yes
- name: Install Emacs
homebrew: name=emacs state=latest install_options=with-cocoa
- name: Install Homebrew Packages
homebrew: name={{ item }} state=latest
kelsin /
Last active Aug 29, 2015
OAuth Description

OAuth is a standard way of a user allowing access to some of their data from one website to another.

When you use "Login with" it's the same technology that powers "Login with Facebook" or "Login with Twitter" buttons that you may have seen in other places on the internet. Our websites sends you to where you would log in as normal (including using your authenticator). When you type in your username and password, notice that you are on websites and it's secure (via the lock icon in your brower's address bar). You are logging in with your credentials to, not our site.

What happens afterword is rather technical, but basicaly you are shown a screen where you grant our site access to see your list of wow characters. The data about your wow characters is the same public data that appears on your armory page. So by logging in with, our site gets this information about you:

  • Your account ID
  • Your battle tag
  • If you give us permission:
kelsin / rune-bar.txt
Last active Aug 29, 2015
DK Weak Auras
View rune-bar.txt
View grid-2-profile.txt
[=== Default profile ===]
kelsin / subtlety.tmw
Last active Aug 29, 2015
Rogue Subtlety Tell Me When export
View subtlety.tmw
^1^T^SNumGroups^N2 ^SGroups^T ^N1^T ^SPoint^T ^Sy^F7459061113028608 ^f-48^Sx ^F-4960995390783488^f-45 ^t^SRole^N1 ^SColumns^N5 ^SOnlyInCombat^B ^STree2^b ^SGUID^STMW:group:1KVCcgq_hOx2 ^STree1^b ^SIcons^T ^N1^T ^SType^Scooldown ^SName^SEviscerate ^SGUID^STMW:icon:1KVCegGqASOz ^SFakeHidden^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SEnabled^B ^t^N2^T ^SShowTimer^B ^SBuffOrDebuff^SHARMFUL ^SType^Sbuff ^SName^SRupture ^SGUID^STMW:icon:1KVCegGv6G2c ^SShowTimerText^B ^SShowWhen^N3 ^SUnit^Starget ^SDurationMaxEnabled^B ^SFakeHidden^B ^SOnlyMine^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SEnabled^B ^SDurationMax^N8 ^t^N3^T ^SShowTimer^B ^SType^Sbuff ^SName^SSlice~`and~`Dice ^SGUID^STMW:icon:1KVCegGx62r_ ^SDurationMaxEnabled^B ^SShowTimerText^B ^SShowWhen^N3 ^SEnabled^B ^SFakeHidden^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SOnlyMine^B ^SDurationMax^N10 ^t^N4^T ^SShowTimer^B ^SBuffOrDebuff^SHARMFUL ^SType^Sbuff ^SName^SHe

Keybase proof

I hereby claim:

  • I am kelsin on github.
  • I am kelsin ( on keybase.
  • I have a public key whose fingerprint is DD39 C186 1B52 7AF3 9D45 2ADC 501E A61C D4E2 0702

To claim this, I am signing this object: