Skip to content

Instantly share code, notes, and snippets.

@daxmc99
daxmc99 / k3dStart.sh
Created September 16, 2019 23:05
k3d local development script
#!/bin/bash
#set -x
#set -e
k3d delete --name='k3s-default'
k3d create --workers 1 --image rancher/k3s:v0.8.1 &&
declare -i i; i=0
until k3d get-kubeconfig --name='k3s-default'
do
if (( i > 20 )); then
break
@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r