Monthly Archives: June 2012

Quickly see how many of your users are on Gravatar

A couple of the companies that I work with have wanted to evaluate the business case for integrating with Gravatar. In order to do this, we wanted to know how many of our users had Gravatar profiles, so I built this very simple PHP script which reads an input file containing email addresses (one per [...]
Posted in APIs, General, Linux, PHP | 2 Comments

Email files directly from the Linux console

It’s not a great habit to get into, but sometimes it can be very quick and convenient to email a file to yourself directly from a bash SSH console. Note: Because this uses email, this method isn’t secure. Think carefully about the contents of what you’re sending before you email files directly from your system. [...]
Posted in Debian, General, Linux, Systems Administration | Leave a comment

Debian APT repos not found? Switch to the archive!

If you’re running an older release of Debian and you’re seeing messages like this when you try and apt-get installs, then it’s probably because your release has been taken off the main mirrors and can no longer be updated that way. W: Failed to fetch http://ftp.uk.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 Not Found [IP: 83.142.228.128 80] W: Failed to [...]
Posted in Debian, Linux, Systems Administration | 4 Comments