Categories
General

Note to Self: tcpdump over ssh connection

The scenario is that you’re connected to a remote machine via ssh and you want to run tcpdump and view the output in real time. Unfortunately, the output will include the ssh connection information as well and therefore it’s quite useless. The simple solution is to filter out ssh:

tcpdump [options] not port ssh

Thanks to http://forum.soft32.com/linux2/tcpdump-filter-examples-ftopict29715.html.

Categories
General

Gravity

Categories
General

Note to Self: Ammend Last Commit in Mercurial

Accidentally commit with a bad commit message? Forgot to include a file in the last commit? The fix is real simple:

hg rollback
# fix whatever
hg commit