Changing the hostname in CentOS

Background: I made a tar backup of one system and wanted to untar that onto different hardware. A bit like cloning. However I needed to make sure the hostname and network settings were those of the new machine and not the cloned machine. So for future... » More

Zero Filling a Disk in Linux

The simple way to wipe or zerofill a disk is: dd if=/dev/zero of=/dev/sd? bs=1M However I found an article describing how to zero-fill with a progress indicator using pipebench, installed on Debian/Ubuntu with: sudo apt-get install pipebench then... » More

GDL: Taking It Further

Quick Reference Good PDF introduction to the GDL language. Libraries Hunting around the web there are people producing extra libraries which can be downloaded : NASA IDL Astronomy Libraries SDSSIDL - a set of general IDL utilities for... » More

GDL: Beginner Code Examples

The Gnu Data Language is an interactive interpreter/incremental compiler for the GNU Data Language, which is primarily used in scientific, astronomical, medical and geo-science data processing applications. It supports graphical output and is... » More

Website Vulnerability Scanning

So I tested out Skipfish today to do a quick check on a website / web server. Hosted on Google at: http://code.google.com/p/skipfish/ download it, extract it and make and run: wget http://skipfish.googlecode.com/files/skipfish-2.01b.tgz tar xzf... » More

Get Image Dimensions on the COmmand Line

Occasionally useful to find out the dimensions of an image without having to load an image editor or file manager. From the ImageMagick toolkit:identify myimage.jpgtiffinfo myimage.tifpnginfo myimage.png

Squid 3 Warning

WARNING: (B) '::/0' is a subnetwork of (A) '::/0' I had this warning when restarting squid 3. I had a line left over from squid 2: acl all src 0.0.0.0/0.0.0.0 which I had subsequently changed to acl all src all as I received a CIDR warning. So to... » More

Building RPMs for Squid, SquidGuard

Squid Get a few dependencies to get the ball rolling: yum -y groupinstall “Development Tools” yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel expat-devel db4-devel libpcap-devel Browse... » More