Reducing Spamassassin process count


Dramatically reduce memory footprint by changing the number of threads that spamassassin will execute at once from 5 down to 1.

Centos: In /etc/sysconfig/spamassassin --


SPAMDOPTIONS="-d -c -m<strong>5</strong> -H"


SPAMDOPTIONS="-d -c -m<strong>1</strong> -H"

Debian: in /etc/default/spamassassin, change:

OPTIONS="--create-prefs --max-children <strong>5</strong> --helper-home-dir"


OPTIONS="--create-prefs --max-children <strong>1</strong> --helper-home-dir"

If you like i18n, you'll love this


Here's a fun little perl script. Inspired by the opaqueness of the acronym "i18n" to mean "internationalization" (i-followed by 18 letters followed by n). Feel free to adjust '3' below to larger or smaller values of three as you wish.

while (<>) {
    $_ =~ s/\b(\w)(\w+)(\w)\b/length($2)><strong>3</strong> ? $1 . length($2) . $3 : "$1$2$3"/gse;

This leads to such hilarity (?) as the following, taken from here.

GNU G5L P4C L5E V5n 2, June 1991

C7t (C) 1989, 1991 Free S6e F8n, Inc. 51 F6n St, Fifth Floor, B4n, MA 02110, USA

E6e is p7d to copy and d8e v6m c4s of this l5e d6t, but c6g it is not a5d.


The l6s for most s6e are d6d to take away your f5m to share and c4e it. By c6t, the GNU G5l P4c L5e is i6d to g7e your f5m to share and c4e free s6e--to make sure the s6e is free for all its users. This G5l P4c L5e a5s to most of the Free S6e F8n's s6e and to any other p5m whose a5s c4t to using it. (Some other Free S6e F8n s6e is c5d by the GNU L5y G5l P4c L5e i5d.) You can apply it to your p6s, too.

p.s., Note to the FSF: Chill out, it's a parody (and merely the textual equivalent of a JPEG picture).

p.p.s., The 'i18n' notation apparently came from DEC around the late 1970s ( see the Wikipedia article)

p.p.p.s., I hope some of you will take the GPL to heart in your quest for c7t and s6e p4t reform -- what some call i10l p6y.

Supporting multiple Wordpress installs


Here's a little Perl script that uses some modules off CPAN to :

Rename the .pl.txt file to .pl, chmod a+x so you can run it, and then:

# <span style="text-decoration: underline;">./</span>

which would display, for example,

Domain                         Version    Tracking Subversion  Owner
-----------                    --------   -------------------  -----             2.8       tags/2.8             alphabet             2.7.1     tags/2.7.1           aardvark       2.3                            dumbasapost

-n sorts by numeric version number; -u sorts alpha by UID.

Very handy when you're supporting a large number of Wordpress installs on a single server, to know who's running what, and who needs to be updated!

NOTE: To install on a fresh system, you will probably need to:

# <span style="text-decoration: underline;">cpan</span>
cpan[3]> <span style="text-decoration: underline;">install App::Info::HTTPD::Apache</span>
cpan[1]> <span style="text-decoration: underline;">install SVN::Class::Info</span>
cpan[2]> <span style="text-decoration: underline;">install Apache::ConfigParser</span>

APC UPS in Centos 5.x


$ <span style="text-decoration: underline;">sudo yum install apcups*</span>
---> Package apcupsd.x86_64 0:3.14.3-1.el5.rf set to be updated
$ <span style="text-decoration: underline;">sudo /sbin/chkconfig --list apcupsd</span>
apcupsd         0:off   1:off   2:on    3:on    4:on    5:on    6:off

Before you start the apcupsd service, edit /etc/apcupsd/apcupsd.conf and set the cable type (to usb for most modern units) and other parameters as needed... then:

$ <span style="text-decoration: underline;">sudo /etc/init.d/apcupsd start</span>

Mounting LVM volumes from Ubuntu LiveCD


sudo -i
apt-get install lvm2
modprobe dm-mod
vgchange -a y

Also try --

pvdisplay Displays physical volumes

vgdisplay Displays volume groups

lvdisplay Displays logical volumes

and: man lvm