Archive for the ‘tips & tricks’ Category

Get the HTTP status code of URL

Posted: 29th April 2010 by Valkyrka in tips & tricks

Here is how you can get the HTTP status code of a URL : Sample output :

Ping using a specific IP

Posted: 13th April 2010 by Valkyrka in tips & tricks

This is very useful if you have a server with multiple IPs configured on it and you want to make sure the an IP is working : You may also use the option -I 70.134.17.9 ( replace the IP address with your actual IP address ) and you will get the same output.

Mount /tmp and /var/tmp with no exec

Posted: 12th April 2010 by BritishSongWriter in gentoo, tips & tricks

We create some files that we'll use to mount at /tmp and /var/tmp. I've installed bind in a chrooted environment, so to keep things simple, the chosen location of the files which will be mounted is /chroot. Create 100MB file for our /tmp partition. If you need more space, make count size larger. Create 1000MB [...]