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

Anti-Virus Software on Linux

A friend contacted me today running an Ubuntu live CD and trying to scan a windows drive for viruses. So for future reference the following antivirus packages can be tried: BitDefender Avira AVG Clam Clam is in the repositories so you don't... » More

Installing GDL an IDL alternative

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

GDL Editors on Linux

For editing GDL / IDL .pro files on Linux you can of course use any Text Editor (gedit, vi) or the IDLDE, but the following could prove useful: 1. Kate Kate Editor with GDL file Kate is a text editor for the KDE desktop environment but looks just... » More

K3B Buring CDs with MP3s

Creating an Audio CD in K3B (my favourite CD burning software) I received an error that MP3 format was not supported and that the files need to be converted to WAV format first. p, li { white-space: pre-wrap; } Problems while adding files to the... » More

Grepping for LizaMoon infected website files

The Liza Moon attack targets Microsoft SQL Server installations injecting javascript tags into website files. Although we are primarily using Unix/Linux servers I performed some scans using the following to check for lizamoon infection:find . -type f... » More

Bash: Looping through Files with Spaces

I was trying to move some miscellaneous music files into directories by artist name. The files (and folders) have spaces in the file names. For my first attempt I tries a for loop e.g. for file in $(find /path/to/music -type f); do ... done A for... » More