Skip to content

Instantly share code, notes, and snippets.

@mobilemind
mobilemind / keybase.md
Created February 27, 2017 23:30
keybase.md

Keybase proof

I hereby claim:

  • I am mobilemind on github.
  • I am mobilemind (https://keybase.io/mobilemind) on keybase.
  • I have a public key whose fingerprint is CFA6 8D4C DC83 0020 6373 2E79 59A6 4A93 6EB1 D9B3

To claim this, I am signing this object:

# strip audio from a video and save as m4a
ffmpeg -i input.mp4 -vn -c:a copy output.m4a
# replace audio track with audio track in identical (m4a) format
ffmpeg.exe -i input_video.mp4 -i replacement_audio.m4a -vcodec copy -acodec copy -map 0:0 -map 1:0 output.mp4
# replace audio, matching file's audio codec (encodes only audio)
ffmpeg.exe -i input_video.mp4 -i replacement_audio.m4a -vcodec copy -map 0:0 -map 1:0 output.mp4
@mobilemind
mobilemind / curlcheck.sh
Created September 5, 2018 04:48
quickly check headers & TLS negotiation using curl
#!/usr/bin/env bash
curl -sv --connect-timeout 15 --head -i 'https://www.google.com' > /dev/null