Dev Snippets

Git

To search through all commits for a string:

git log -S "the string you want" -n 1 --pretty=format:%H

Regex Guide

To replace all occurrences of **WHATEVER**:

search pattern: \*\*(.+?)\*\*
replacement: [b $1]

Compress video files

ffmpeg -i eqno-scroll.mov -vcodec h264 -crf 23 output.mp4