Blog About Contact

About the Author

Richard Nichols is an Australian software engineer with a passion for making things.

Follow him on twitter or subscribe by RSS or email.

Latest Post

Use tcpdump to capture web traffic for debugging

Published Mon, 9 Feb 2015 • 1 comments

Note to self type post - tcpdump can be used for watching raw HTTP traffic on pretty much any linux host in realtime, which is really handy.


sudo tcpdump -A -i eth0 port 80

The -A option says to print in ASCII, the rest is pretty obvious.

Older Posts

Useful shell scripts: nightly postgresql backup Sun, 11 Jan 2015
Here's a shell script which does a daily backup of a postgresql database and keeps a weeks worth of backups locally.You can then rsync this folder over ssh...
Fixing the Home/End Key Behaviour on Mac OSX Wed, 30 Apr 2014
Something that always drives me mad when using OS-X is the way keyboard bindings for basic text editing are different to WindowsLinux PCs. For a developer...
Setting Up iptables for SSH/HTTP/HTTPS for new server install Mon, 7 Apr 2014
Whenever I set up a new cloud server I have to lookup the commands to set up iptables correctly for the three sevices I almost always have switched on - SSH,...
Creating and importing an external certificate to SQL Server Mon, 3 Mar 2014
This was kind of a pain to get working, so I'm logging the steps here. Certificates can be used in SQL Server to authenticate remote communication (e.g. for...
Getting nice font rendering in Netbeans 7 on Ubuntu 12.04 Wed, 21 Aug 2013
I recently switched to Ubuntu 12.04 for my work PC and I'm pretty happy with the results, except for terrible font rendering in Swing applications,...
Diagnosing transactions causing SQL Server's transaction log truncation to fail Mon, 12 Aug 2013
This is one of those "for my future reference" posts.To diagnose which transaction is causing SQL Server's transaction log truncation to fail, the...
Netbeans code template for SLF4J logging Mon, 29 Jul 2013
Here's a neat code template for Netbeans to add a static logger declaration to a class file. private static final Logger log ...
Can't change the font in Netbeans Output Window? Mon, 24 Jun 2013
I just spent 20 minutes trying to figure out why I couldn't change the font in Netbean's output window (which inexplicable uses Java's default system...