SpamAssassin: How to protect against current spam attacks
Christopher J. Buckley has posted a good article on protecting against current spam attacks. Go on, take a look.
Anonymous apache & PHP
Like to be conspicuous? Like me.
Then use the ServerTokens and expose_php options. On a production web server I generally set these two options, pretty much stops and zero day hack attempts and other such nonsense
Cheat Sheet – Seconds to real time
Caching stuff? Expiring stuff? Crap at math(s)? Too lazy to boot up a calculator?
Here's a cheat sheet of seconds to a more readable time!
bash – Argument List Too Long
I've got several scripts that have been failing recently due to the high number of files in a directory.
Say for example, my site wide spamassassin Bayes learning script that runs nightly, it has started failing sometimes when a lot of spam has been caught by users.
I'd see
bash: /bin/rm: Argument list too long
A fix would look like this
for i in /your/directory
do
rm -rvf $i
done
find would probably also do the same job.
Protoculous – Prototype and script.aculo.us
An unknown Frenchman did a great job at combining and compressing Prototype & script.aculo.us into one ultra-small single Javascript file.
At the time of writing he is on version 1.0.2 which includes Prototype 1.5.1 and Scriptaculous 1.7.1 beta 3
The Protoculous file size is 54.6KB
Ubuntu sources.list Generatror
I had a problem with some slow Ubuntu sources today, instead of changing the whole sources.list manually, I stumbled over Ubuntu Nederland's Source-O-Matic.
Slam in the country you want and it generates you a nice new file. Saves at least 30 seconds!
Card Reader Annoyances
My new Dell computer came with one of those 1,600 in 1 internal memory card readers. The 1,600 drives in 'My Computer' really irritated me.
OK, so I exaggerated slightly. But the extra 3 drives did irritate me. My cameras use SD cards so I can safely disable the ones I don't use.




