Skip to content

Instantly share code, notes, and snippets.

@junkdog
Last active July 26, 2016 00:11
Show Gist options
  • Save junkdog/5441bd88f6123507411120508e9dc619 to your computer and use it in GitHub Desktop.
Save junkdog/5441bd88f6123507411120508e9dc619 to your computer and use it in GitHub Desktop.
sed amd stuff

find . -type f -name '*.md' -print0 | xargs -0 sed -i 's/0.12.0/0.12.2/g'

replace component path

find . -type f -name '*.json' -print0 | xargs -0 sed -i 's/map.component.(InheritScale)/urizen.component.\1/g'

reset pulse (maybe)

rm -r ~/.config/pulse; pulseaudio -k

ffmpeg

Lossless recording

ffmpeg -video_size 1400x900 -framerate 30 -f x11grab -i :0.0 -c:v libx264 -qp 0 -preset ultrafast capture.mkv

to tweetable video

ffmpeg -i capture.mkv -vcodec libx264 -profile:v baseline -pix_fmt yuv420p output.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment