Skip to content

Instantly share code, notes, and snippets.

View VersionMismatch's full-sized avatar

VersionMismatch VersionMismatch

View GitHub Profile
@VersionMismatch
VersionMismatch / gist:c4318e84fca8dd035552285c1bdf37a0
Created April 25, 2016 17:44
Convert m4a to mp3 console (After installing ffmpeg codec)
#install ffmpeg from homebrew
#brew install ffmpeg
for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.m4a}.mp3"; done
@VersionMismatch
VersionMismatch / stashExporter
Created March 30, 2015 21:36
Export git stashes to patch files using the stash name as the file name
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> " $1$2$3 ".diff" ) }'