Skip to content

Instantly share code, notes, and snippets.

View unguiculus's full-sized avatar

Reinhard Nägele unguiculus

  • IBM Deutschland Research & Development
  • Germany
  • X @unguiculus
View GitHub Profile
#!/usr/bin/env bash
set -e
set -o pipefail
kubectl proxy &
proxy_pid="$!"
trap 'kill "$proxy_pid"' EXIT
for ns in $(kubectl get namespace --field-selector=status.phase=Terminating --output=jsonpath="{.items[*].metadata.name}"); do
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
show_help() {
cat << EOF
Usage: $(basename "$0") <options>
-h, --help Display help

Keybase proof

I hereby claim:

  • I am unguiculus on github.
  • I am unguiculus (https://keybase.io/unguiculus) on keybase.
  • I have a public key ASDw6vu419rDY3xvh-pD5Gt9nkjU9h1plNk3AE2oUCsaBwo

To claim this, I am signing this object:

@unguiculus
unguiculus / gitcheats.txt
Created December 2, 2016 07:41 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# remove untracked files in a git repository
git status -su | cut -d' ' -f2- | tr '\n' '\0' | xargs -0 rm
# get most modified files and counts
git log --all -M -C --name-only --format='format:' "$@" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print "count\tfile"} {print $1 "\t" $2}' | sort -g
# Locally checkout all remote branches of a repository