Extact tar.gz files

Writing by on Thursday, 31 of July , 2008 at 9:59 am

Let’s say you have a tar.gz file. For example, apache-ant-1.6.1-bin.tar.gz

# Decompress the zip file
gzip -d apache-ant-1.6.1-bin.tar.gz
# Extract the ant files in verbose mode
tar -xvf apache-ant-1.6.1-bin.tar

Leave a comment

Category: Linux,Tips and Tricks

tcpdump to a .cap file and analyze using WireShark

Writing by on Friday, 18 of July , 2008 at 5:37 pm

To capture tcpdump output

tcpdump -v -s 4096 -w capfile.cap port 25

You can then read the capfile.cap file using WireShark

Leave a comment

Category: Linux,Tips and Tricks

Pressing “I” for interactive start-up does nothing

Writing by on Wednesday, 16 of July , 2008 at 6:15 pm

If at boot time you already know that you want an interactive start, and you know during CentOS boot process pressing “I” does nothing, here’s a trick.

At the grub boot screen press “a” (without quotes) to edit parameters
Append “confirm” (without quotes) to the kernel line

Leave a comment

Category: Linux,Tips and Tricks

Restart Windows via Remote Desktop (RDP)

Writing by on Wednesday, 16 of July , 2008 at 1:59 pm

If you’re RDP-ing to a Windows box and you want to restart or shut it down and only see the Log Off or Disconnect use the following trick.

For the Windows Security Dialog use these shortcut keys in the RDP session.

CTRL + ALT + END

For a forced restart from command prompt

shutdown -f -r

For a forced shutdown from command prompt.

shutdown -f -s

Leave a comment

Category: Tips and Tricks

Selectively Delete Firefox Saved Form Information

Writing by on Tuesday, 15 of July , 2008 at 11:51 pm

So you love the auto-complete feature but Firefox’s Clear Private Data deletes everything. But if you want to delete just selected entries (for example, if you had a typo in your login information etc. and want to delete just some selected entries) use the shortcut Shift+Del. On the page, click on the text field and let Firefox list appear. Use your arrow keys in the list of choices and navigate to the “bad” entry and hit Shift+Del. It will be removed.

Leave a comment

Category: Tips and Tricks

Excellent ANT Tutorial

Writing by on Friday, 11 of July , 2008 at 11:33 am

Here’s and excellent Hello World ANT Tutorial with which you could get started with a decent looking build.xml

Leave a comment

Category: Java

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.