Monthly Archives: January 2014

openssl

http://www.vanemery.com/Linux/Apache/openSSL.html http://www.madboa.com/geek/openssl/ openssl s_client -connect http://www.google.com:443 -showcerts : show SSL certficate echo -n | openssl s_client -connect http://www.google.com:443 -showcerts | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ | openssl x509 -noout -subject -dates  : display dates for the certificate Advertisements

Posted in ssl | Tagged | Leave a comment

sudo with redirect to file

In order to “cat /dev/null > syslog” with sudo, sudo bash -c ‘cat /dev/null>syslog’ http://stackoverflow.com/questions/82256/how-do-i-use-sudo-to-redirect-output-to-a-location-i-dont-have-permission-to-wr

Posted in Uncategorized | Tagged | Leave a comment

collectl

http://www.binarytides.com/collectl-monitor-system-resources-linux/

Posted in linux | Tagged , | Leave a comment

ssh tricks

ssh allocate a pseudo tty: ssh -t <ssh_alias>  htop ssh with sudo password:  http://www.cyberciti.biz/faq/linux-unix-bsd-sudo-sorry-you-must-haveattytorun/  ssh -t ssh_alias ” echo secret | sudo -S dmidecode” ssh-keygen -lf /etc/ssh/ssh_host_rsa_key : print the SSH server fingerprint pssh (parallel-ssh) is good for non interactive … Continue reading

Posted in ssh | Tagged | Leave a comment

pdf to html and html to pdf

pdf2htmlEX –fallback 1 pdf/test.pdf html to pdf: http://wkhtmltopdf.org/

Posted in Uncategorized | Tagged , | Leave a comment