Report what ciphers are support by a host (using openssl)

Report what ciphers are supported by a host (using openssl): https://gist.github.com/3654892 Usage: ciphertest.sh host:port Note: It’s limited to reporting about the ciphers which the locally installed version of OpenSSL supports.
Read more →

Hidden SSH Client Commands

Ever had a SSH session hang when you loose network connection, or when the remote machine hangs? Then couldn’t escape from SSH? I always resorted to closing the window or killing the process. But now with two key strokes the trouble’s gone! Pressing “~” drops you into SSH’s secret set of internal commands. You can retrieve a full list of command by running “~?“. Now by just typing “~.” I can kill any hanging ssh connection.
Read more →

Useful MySQL client tweaks

Every few weeks I end up having to dive back into the world of MySQL for whatever reason, each time trying to start-off from where I left my learning last time. My knowledge of MySQL has pretty much been picked up on the way, just debugging application performance from time to time. However one thing I find useful, and something I do almost immediatley after logging into a new database box is edit my ~/.
Read more →

HAProxy stats from the command line

I’m currently writting a check_mk plugin to monitor HAProxy, and so wanted a way of retrieving stats without resorting to using the web interface. It turned out to be pretty easy to do, using good old netcat: /etc/haproxy/haproxy.cfg global […] stats socket /tmp/haproxy […] There are plenty of options you can pass into the socket, just echo nothing into it to get the list: $ echo "" | nc -U /tmp/haproxy Unknown command.
Read more →

Universe of knowledge at your command line

Ever wanted to sound like a genius on any subject within seconds? Some clever sod has given access to the opening snippet of every wikipedia article using a DNS lookup. A one line bash script makes retrieving this opening paragraph extremely quick and easy. ~/bin/wiki #!/bin/sh dig +short txt ${1}.wp.dg.cx Usage user@host:~$ wiki linux "Linux (commonly pronounced in English; variants exist) is a[…]"
Read more →