Timing the webpage html download through curl

The following is an example of curl usage for url ‘http://www.google.co.in’ as a request made by Firefox-10

curl -w 'DNS Lookup Time:\t\t%{time_namelookup}\nConnect time:\t\t%{time_connect}\nPreXfer time:\t\t%{time_pretransfer}\nStartXfer time:\t\t%{time_starttransfer}\nTotal time:\t\t%{time_total}\nNumberofConnects:\t\t%{num_connects}\nNumberofRedirects:\t\t%{num_redirects}\nRedirectTime:\t\t%{time_redirect}\nHttpStatus:\t\t%{http_code}' --user-agent 'Mozilla/6.0 (Macintosh; I; Intel Mac OS X 11_7_9; de-LI; rv:1    .9b4) Gecko/2012010317 Firefox/10.0a4' -s http://www.google.co.in

Java Learning

A nice post n how to learn java


The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes

The issue is resolved by removing the .snap file present under directory


Useful tcpdump commands

All traffic on a port

 $ sudo tcpdump -s0 -A "tcp port 4080 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"

All HTTP GET traffic to/fro of a machine

 $ sudo tcpdump -s0 -A "src testmachine.com or dst testmachine.com and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" | grep -A 10 GET

Skip the Test goal during maven install

$ mvn clean install -Dmaven.test.skip=true

Displaying maven Effective POM command

$ mvn help:effective-pom

Listing the contents of war file

jar -tvf foo.war