Monday, October 3, 2011

Post on Logging.

My post on logging in production

http://sandeepsinghal.wordpress.com/2011/09/18/better-you-log-in-development-less-you-will-bleed-in-production/

Google Code Page for Unix Utils

 Adding some of my utility shell scripts to a common google page.

http://code.google.com/p/nixtils/ 

Monday, July 25, 2011

Linux - See which process is using which port

netstat -anop

Then use ps and grep to find the process using this port

Windows - See what processes are using which ports

netstat -ano

You can then use the task manager to see the process id of the owning process.

Tuesday, February 23, 2010

Installing xmllint on cygwin

Select the following pacakges
  • libxml
  • libxslt

Sunday, December 27, 2009

symbolic links in windows

junction - sysinternal tool for winxp and above

mlink - with vista and above

Saturday, November 7, 2009

Find lines of code in your repository


for ext in "*.java" "*.xml" "*.css" "*.jsp" "*.js" "*.sql"
do
echo -n "$ext,$location,"
find ./$location -iname "$ext" -exec wc -l '{}' \;|gawk '{total+=$1} END{print total}'
done