giovedì, dicembre 22, 2016

concatenate pdf files with ubunbtu

$ sudo apt-get install pdftk 

$ pdftk f1.pdf f2.pdf f3.pdf cat output f123.pdf

In order to remove an (unknown) password from a protected pdf use this command:

$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf

factorial with RecursiveTask

martedì, febbraio 23, 2016

ab benchmark

$ ab -A myUsername:myPassword -n 1000 -c 1000 http://localhost:8090/api/words

mercoledì, febbraio 17, 2016

Restarting wireless in Ubuntu

$ sudo service network-manager restart
$ sudo nmcli nm sleep false && sudo pkill -f wpa_supplicant