Skip to content

Instantly share code, notes, and snippets.

writing code!

Shane Utt shaneutt

writing code!
View GitHub Profile
View gist:69f9131b660422ce747dc884d253c764
set -euo pipefail
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl apply -f
kubectl delete standard
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"":"true"}}}'
shaneutt / ca_and_cert_golang_demo.go
Created Jan 19, 2019
Golang: Demonstrate creating a CA Certificate, and Creating and Signing Certs with the CA
View ca_and_cert_golang_demo.go
package main
import (
shaneutt /
Created Nov 30, 2017 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
shaneutt /
Created Oct 25, 2016 — forked from mathieulegrand/
simple connect to server:443 in Rust
// Rust 0.10-pre (Tue Mar 18, 2014)
// $ rustc -L rust-openssl/build/ -L rust-toml/lib
// assuming is cloned and compiled,
// and is cloned and compiled
extern crate openssl;
extern crate serialize;
shaneutt /
Created Apr 30, 2016 — forked from andreyvit/
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
You can’t perform that action at this time.