Category: misc |

Encode videos to send via WhatsApp

WhatsApp currently is kind of picky about the video format that supports. To my knowledge only: MP4 (H264 + aac)

I use avconv to convert my existing video files:

INPUT_FILE=~/vids/ground_spiral.MP4

avconv -i $INPUT_FILE \
       -f mp4 -c:v h264 -b:v 1200k -g 300 -bf 2 -s 640x352 \
       -c:a aac -b:a 64k -ac 1 \
       /tmp/output.MP4
More

Install Hack Typeface on Ubuntu/Debian

Want to try Hack Typeface? Use the following gist:

Happy coding!

More

Add custom facts to puppet

Just needed a fast way to set up facts with a couple of commands on the machine where I'm using/testing puppet manifests.

Surprissingly I found what I was looking for digging in Vagrant code. Put your facts in environment variables, prefixed with 'FACTER_':

# Define your facts as variables
export FACTER_YOURCUSTOMFACT=value1
export FACTER_OTHERFACT=value2

puppet apply /path/to/puppet/test/main.pp

Happy testing!

More

© Maximiliano Padulo. Site built with Pelican. Theme forked from perec. Member of the Internet Defense League.