notes

ffmpeg, convert from flv to avi
/usr/bin/ffmpeg -i “path/to/file.flv” -acodec libmp3lame -vcodec msmpeg4 -ab 192kb -b 1000kb -s 640×480 -ar 44100 “/path/to/file.avi”
extract information from x509 certificate
openssl x509 -text -in cert.pem
removing service from starting at boot time
sudo update-rc.d -f name_of_service remove
adding service to start at boot time
sudo update-rc.d name_of_service defaults
start local proxy
ssh -CN -D 9853 server.to.proxy.to -l username
create cython c source file from python source with __main__
cython -v --embed source.pyx
compile cython generated c source
gcc $CFLAGS -I/usr/include/python2.7 source_name.c -o target_name -lpython2.7 -lpthread -lm -lutil -ldl
set emacs as default editor (ubuntu)
sudo update-alternatives --config editor
find pid number of process using a know network port
lsof -i :4000