Skip to content

Instantly share code, notes, and snippets.

View jclif's full-sized avatar
🏎️
Wheelin' and dealin'

Jared Clifton-Lee jclif

🏎️
Wheelin' and dealin'
View GitHub Profile
@jclif
jclif / shadow_pngs
Created October 20, 2013 21:46
Takes all png files in current directory, uses image magick to shadow them, and puts the shadowed copy into a directory called shadow (which must already exist)
for i in *.png; do convert $i '(' +clone -background black -shadow 90x5+5+5 ')' +swap -background none -layers merge +repage shadow/$i.png; done
@jclif
jclif / change_git_authors
Last active December 25, 2015 05:19
Change mistaken commit authorship on private or unforked repositories.
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "ENTER_BAD_EMAIL_HERE" ]
then
cn="ENTER_GOOD_NAME_HERE"