Skip to content

Instantly share code, notes, and snippets.

View kelsin's full-sized avatar

Christopher Giroir kelsin

View GitHub Profile
@kelsin
kelsin / restart-all-deployments.sh
Last active February 27, 2021 05:36
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;
done
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
kelsin / README.md
Created May 1, 2018 23:51
Blizzard Colors

Blizzard Colors

A Blizzard Themed 16 Color Ansi Palette

Colors

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
kelsin / command.sh
Created September 21, 2016 19:16
Example API Response from my ember app
curl -H "Accept: application/json+ember" https://staging.byfirebepurged.com/account?apikey=ae1761a7-bba2-420a-a2a8-7007d1fb58b6
---
- hosts: local
become: no
tasks:
- 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
kelsin / oauth-description.md
Last active August 29, 2015 14:15
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 Battle.net" 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 Battle.net where you would log in as normal (including using your authenticator). When you type in your username and password, notice that you are on Battle.net websites and it's secure (via the lock icon in your brower's address bar). You are logging in with your credentials to Battle.net, 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 battle.net, our site gets this information about you:

  • Your Battle.net account ID
  • Your Battle.net battle tag
  • If you give us permission:
@kelsin
kelsin / rune-bar.txt
Last active August 29, 2015 14:13
DK Weak Auras
deeZYaqjrs6wcjTlPQQmmHWXKWYKiptQyAesxtKY2iq9nPQY4iq6CeiUhHs7JqXbLOSqaEijjtui6IcPSrHeFuePrkr1jjeVuivZuQQQUPiIDkPFsadLKuDuPQklvKQNQAQI6QKKYxfj1Cjj2l6VsXGLQCyQSya5XuLjtIltzZsPptqJMK60GEnHQztvDBHA3K63qnCGoUijworphY0vUUGTls8DruJhqDEry9svz)sLMfmZ7yMJhXxQ)v0)IO)jkFmVcVcZ8jeOTfzJ1OkO8iZVv1Xq94biqolqs6)rlkzEPjeI15eGgVqjoaYRdXzjuOqtIyTGhQWNEqBD7bWj59XofM5vGTTqVG)sWmFCWFqM544LopJz(4G)GmZXXhqwJNVdH4Nmy8Z5B6XmFCWFqM54498DieZ8iOwOVXhz0klxE0RIK0YZC8sSVXmFCWFqM5444nGbDAftHaXX7XmRfmZNqG2wKnwJArPi49cOHJZgWt1avCZ4dGkUz8qpSMa4NekuOjzMpGSgzqBeaFaznqDkMezeaVxanCCJAOIXpySPWhqwtqdhbWVeGgpAUfq8G4KnjFjEqCYMSbdAs3WsEXiwEpCmqyqmupudg0KUHL8IrS8wkME8rAUPUBVORHcvVU9spOn(aYA8WXaHbXq9qeaFqBPy6X7cdZhqwJI5M60dAJaXldAJ1s8bK1aIt2KeaVhogimigQhIVehpAqpXtezq6geRjq8Ty94JIe2x3E9xWPiDZ1TxoZR2GcvpwlIG3h7uyMxb22c9c(lbZ8Xb)bzMJJx68mM5Jd(dYmhhFaznE(oeIa4NZ30Jz(4G)GmZXX757qiM5rqTqFJpYOvwU8OxfjPLN54LyFJz(4G)GmZXXX3I17W(mwlkXRarG(UeFopXr8PkIpgkLyjbWlnHqSoNa04Nb8csJ3PHXUbXAM5rZjhZ8lbOXdknKnEqPHSX36umo(wOgIuZm)saA8GsdzJhuAiB8TofJJJhQHRXdhd6BZuyTGFgWlinEr0ZKTop
@kelsin
kelsin / grid-2-profile.txt
Last active August 29, 2015 14:13
Grid 2 Profile
[=== Default profile ===]
30347C620052405AB580DE2A4E719A296819C13A8564A2FC0926A119AB688AD6
444FD0A03E0883780CA34058E02092B0984E125A431980E225A8D8848E3225A6
429A2E4209AE52211DC4405DD4422DE4AAF9849C050295A840F45A9A24759459
ADA4AA48FA84481B80A0C954050DA525522B75DF5405438114E031613AAE1345
3918ABC82B919AE33923A1193D8ACB625599D28BD49A67315FB143C10D172552
A6934E930C471D5742D6742AEB311A1F054EC3496D39AAADF054DB93E5AD8830
BEE871CC87AA63F7109229A006083E54C00454881E9C149F871781022DD1FA8D
595814EB867375BDDC5E7757ED4C209D54C00454881E9C149F2E030446B09A27
EEABB83C001993E51BB9B867575BDDC5E7757E979712BE71CD1F62618CE2F246
@kelsin
kelsin / subtlety.tmw
Last active August 29, 2015 14:10
Rogue Subtlety Tell Me When export
^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 (https://keybase.io/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: