Skip to content

Instantly share code, notes, and snippets.

View deepakprabhakara's full-sized avatar

Deepak Prabhakara deepakprabhakara

View GitHub Profile
kubectl config view
kubectl config use-context <context>
@deepakprabhakara
deepakprabhakara / k8s-context.sh
Created February 8, 2020 19:54
k8s: view and use-context
kubectl config view
kubectl config use-context <context>
@deepakprabhakara
deepakprabhakara / loc.sh
Created February 6, 2020 22:29
lines of code
brew install scc
@deepakprabhakara
deepakprabhakara / git-list-file-sizes.sh
Created February 5, 2020 20:28
git: list file sizes
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| sed -n 's/^blob //p' \
| sort --numeric-sort --key=2 \
| cut -c 1-12,41- \
| $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest

Keybase proof

I hereby claim:

  • I am deepakprabhakara on github.
  • I am deepakp (https://keybase.io/deepakp) on keybase.
  • I have a public key ASBpnhi4SbdieRKOi062kcPbKPPJH_w98CVNYWNbcGgiKQo

To claim this, I am signing this object: