Archive for April, 2010

Watch activity on a port on a Windows box

Posted: 26th April 2010 by Valkyrka in netstat, windows

Here is how you can watch the activity on a certain port on a Windows box :

Remove comments from configuration files

Posted: 23rd April 2010 by Valkyrka in bash, one-liner, sed, shell

Here is how you can remove comments ( the ones starting with # ) from configuration files : This will remove all comments from Apache's configuration file.

Get gateway IP

Posted: 23rd April 2010 by Valkyrka in bash, one-liner

If you need to get the IP of the gatway, simply use the following command :