Skip to content

Instantly share code, notes, and snippets.

View aliakhtar's full-sized avatar

Ali Akhtar aliakhtar

View GitHub Profile
#!/usr/bin/env bash
# Helper script to describe the specified pod. Usage: describe.sh <pod name>
kubectl describe po $1 -n <gig name here>
@aliakhtar
aliakhtar / gitstats.sh
Created September 10, 2018 00:06 — forked from xeoncross/gitstats.sh
Git - calculate how many lines of code were added/changed by someone
# Run this in the project repo from the command-line
# http://stackoverflow.com/a/4593065/99923
git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'