Skip to content

Instantly share code, notes, and snippets.

View klingerf's full-sized avatar

Kevin Ingelman klingerf

  • Buoyant
  • San Francisco
View GitHub Profile
@klingerf
klingerf / books.md
Last active March 12, 2020 06:11
Buoyant Book Club Reading List

Already Read

Title Author Published Pages
The Linux Command Line: A Complete Introduction William E. Shotts Jr. 2012 480
A Philosophy of Software Design John Ousterhout 2018 190
The Soul of A New Machine Tracy Kidder 1981 320
Thinking in Systems: A Primer Donella H. Meadows 2008 240

Past/Future Candidates

@klingerf
klingerf / gist:57e0f6dd46f3951fb6ddcea2f4674a42
Created August 14, 2018 21:50
go build -v -i -x -o kltest ./cli
$ go build -v -i -x -o kltest ./cli
WORK=/var/folders/tb/99nw7rb94d9b60m_q_9869sw0000gn/T/go-build763953139
rm -r $WORK/b005/
rm -r $WORK/b013/
rm -r $WORK/b009/
rm -r $WORK/b012/
rm -r $WORK/b015/
rm -r $WORK/b016/
rm -r $WORK/b028/
rm -r $WORK/b034/
@klingerf
klingerf / metrics.json
Created February 14, 2017 19:48
zipkin tracer stats
"clnt/zipkin-http/available" : 1.0,
"clnt/zipkin-http/cancelled_connects" : 0,
"clnt/zipkin-http/closes" : 2,
"clnt/zipkin-http/connect_latency_ms.avg" : 0.0,
"clnt/zipkin-http/connect_latency_ms.count" : 1,
"clnt/zipkin-http/connect_latency_ms.max" : 0,
"clnt/zipkin-http/connect_latency_ms.min" : 0,
"clnt/zipkin-http/connect_latency_ms.p50" : 0,
"clnt/zipkin-http/connect_latency_ms.p90" : 0,
"clnt/zipkin-http/connect_latency_ms.p95" : 0,
@klingerf
klingerf / blue-green.groovy
Created November 4, 2016 03:10
Jenkins pipeline script to perform blue-green deploys to a Kubernetes cluster running linkerd and namerd
node {
def currentVersion = getCurrentVersion()
def newVersion = getNextVersion(currentVersion)
def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim()
def originalDst = getDst(getDtab())
stage("clone") {
git url: gitRepo + '.git', branch: gitBranch
}
@klingerf
klingerf / openssl.cnf
Created May 13, 2016 01:47
Sample openssl config file
dir = certificates
[ ca ]
default_ca = CA_default
[ CA_default ]
serial = $dir/serial
database = $dir/index.txt
new_certs_dir = $dir/newcerts
certificate = $dir/cacert.pem
@klingerf
klingerf / linkerd.rb
Last active March 8, 2017 00:28
sinatra extension to forward linkerd headers with activeresource requests
require 'sinatra/extension'
require 'active_resource'
module L5D
extend Sinatra::Extension
class << self
attr_accessor :headers
end
@klingerf
klingerf / gist:614679
Last active September 23, 2015 20:57
.gitconfig
[user]
name = Kevin Lingerfelt
email = xxx
[alias]
br = branch
ci = commit
co = checkout
st = status
wtf = "!git-wtf"
last = log -p -1 HEAD
@klingerf
klingerf / gist:594371
Last active September 23, 2015 17:58
.vimrc
syntax on
set ruler
@klingerf
klingerf / gist:594364
Created September 23, 2010 21:07
.my.cnf
[client]
user='root'
password=''
@klingerf
klingerf / gist:590477
Last active September 23, 2015 17:28
.profile
export PS1='\[\033[1;32m\]\u\[\033[0m\] \[\033[1;36m\]\w\[\033[0m\]$(__git_ps1 " \[\033[1;33m\](%s)\[\033[0m\]") \[\033[1;32m\]\$\[\033[0m\] '
export GREP_OPTIONS='-I --color=auto --exclude=\.classpath* --exclude-dir=\.git* --exclude=dir=\.idea* --exclude-dir=generated-sources --exclude-dir=generated-resources --exclude-dir=generated-test-sources'
alias ls='ls -G'
alias ll='ls -alh'
alias be='bundle exec'
alias pbsort='pbpaste | sort | pbcopy'
alias pbescape='pbpaste | ruby -rcgi -e "print CGI.escape(STDIN.read)" | pbcopy'
export JAVA_TOOL_OPTIONS="-Dfile.encoding=utf8"