Apache 2.4 mod_remoteip

I’ve been struggling to get this working in a way to log the requesting client IP and not the load-balancer IP when the server is behind an AWS load-balancer. In the end it was very simple: As /etc/apache2/mods-enabled/remoteip.conf RemoteIPHeader X-Forwarded-For …

Read more »

Deploying crontab/cronjobs with PHP projects

I know there are a load of solutions out there already, but nothing that I could see that were as simple as I needed, or as flexible. In particularly I have one project which uses the core code across three …

Read more »

Git with Selenium UI Testing – Unpredictable results

A quick, and rather silly one, that has just caught me out a couple of times: Take a situation where you’re working on a site, and want to run some Selenium tests in the background, possibly with a CI server …

Read more »

Offline Mutt to replace Thunderbird on Ubuntu (5 of 4)…eh?

And one more that I’d forgotten about: using notify-send to show a popup when an email is received by offlineimap. Most of this was cribbed from…somewhere I forget. I think I just changed the parsing and left most of the …

Read more »

Offline Mutt to replace Thunderbird on Ubuntu (4 of 4)

It’s about time I got back to this one… So to bring together everything over the last 4 posts and to cover how offlineimap and msmtp can work together with Mutt, this is the config that’s needed: # Show unicode …

Read more »

Offline Mutt to replace Thunderbird on Ubuntu (3 of 4)

The previous post looked at setting up offlineimap for managing received emails, and this post will look at setting up msmtp for managing sending emails. The main reason I don’t like to use Mutt’s built-in SMTP to send directly to …

Read more »

Offline Mutt to replace Thunderbird on Ubuntu (2 of 4)

It doesn’t make sense to look at the Mutt config first, even though that is at the heart of everything. So first of all I’ll cover offlineimap. This package will replicate the IMAP folders from your email provider (Google Apps …

Read more »

Offline Mutt to replace Thunderbird on Ubuntu (1 of 4)

I’ve fallen out with Thunderbird recently and the geek in me has been interested in getting Mutt up and running for a while. But I needed certain functionality and it’s taken a little while to put all of the pieces …

Read more »

WordPress 3.4.1 and AJAX problems

Overnight another team member updated the main blogs to the newest version of WP, and subsequently some plugins we use failed to work correctly. The plugins display a list of items which are retrieved via an API call to our …

Read more »

Handling config files for local development, staging and production in PHP

I’ve had a few stabs at this and never been particularly happy with how it works. My last move was to only provide a skeleton config file under versioning, then complete variables like DB user and pass on individual servers. …

Read more »