Skip to content

Instantly share code, notes, and snippets.

@JamesPrudente
Last active December 17, 2015 19:28
Show Gist options
  • Save JamesPrudente/5660184 to your computer and use it in GitHub Desktop.
Save JamesPrudente/5660184 to your computer and use it in GitHub Desktop.
command line
MKV to MP4
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
copy file from vagrant
scp -P 2222 -i ~/.vagrant.d/insecure_private_key [email protected]:/home/vagrant/hipache/docker.png .
parse json
echo "{'cat':'dog'}" | python -c "json=eval(''.join(__import__('sys').stdin.readlines()));print json['cat']"
format json
curl localhost:4243/images/json?all=0 | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment