Skip to content

Instantly share code, notes, and snippets.

@ehedaya
ehedaya / randomize.sh
Created February 2, 2013 17:15
Prepend files with short hash (to randomize alphabetization order)
for f in *.batch;
do
m=`shasum ${f} | awk '{print substr($1,0,6)}'`
echo "${f} -> ${m}_${f}"
mv $f ${m}_${f}
done;
@ehedaya
ehedaya / gist:3974870
Created October 29, 2012 16:55
Handy git aliases (sayForExample)
[alias]
lg = log --graph --all --format=format:'%C(bold red)%h%C(reset) - %C(bold green)%ad%C(reset) %C(white)%s%C(reset) %C(bold white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=short
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short