Categories
Twitter

Automated twitter compilation up to 21 January 2018

Arbitrary tweets made by TheGingerDog up to 21 January 2018

Categories
Twitter

Automated twitter compilation up to 24 July 2016

Arbitrary tweets made by TheGingerDog up to 24 July 2016

Categories
Uncategorized

Lazy wordpress updating using wp-cli.phar

Fed up installing updates to WordPress sites? Stick this in a cron job somewhere, and cross your fingers (a little)….

Categories
debian

varnish throttling

I came across the varnish throttle module the other day – which seems quite useful – and certainly gives better control over abusive requests than using fail2ban (in that, only specific URLs/request types can be targeted and blocked with the throttle module, while fail2ban tends to trigger the blocking of any traffic from a client […]

Categories
mysql

Cleaning up a lot of WordPress _transients

WordPress seems to like hiding a load of ‘transient’ (cacheable) stuff in it’s wp_options table. Unfortunately for one site, it seems it didn’t bother to clean up the transient stuff, leaving behind about 750,000 records… which made a WP version upgrade painful, as MySQL locks the wp_option table which causes all other page loads to […]

Categories
Twitter

Automated twitter compilation up to 18 January 2015

Arbitrary tweets made by TheGingerDog up to 18 January 2015

Categories
Twitter

Automated twitter compilation up to 28 December 2014

Arbitrary tweets made by TheGingerDog up to 28 December 2014

Categories
php spam

WordPress comment spam post fail

While trying to block spam posts on a forum, I noticed this gem. No doubt someone’s spam sending program has failed, just a little….

Categories
linux

Fail2ban filter for WordPress

With the annoying brute force wordpress hack going round, one way to protect your site(s) would be to use fail2ban, with a configuration something like (which I’ve shamelessly lifted from http://blog.somsip.com/2011/12/protecting-apache-webservers-from-wordpress-admin-login-dictionary-attacks/ ). The below seems to be working, and given it’s relative simplicity it’s obvious how you’d go about changing to protect other POST based scripts […]

Categories
php

Google News Sitemap + WordPress

Annoyingly the current version of the google-news-sitemap plugin for WordPress (v1.4) doesn’t work with some silly XML namespace error reported by google. See http://wordpress.org/support/topic/364929 and effectively the ‘patch’ on the Google Support forum thing which works fine (there are two bits of the plugin which need updating – whcih correlate to the two parts mentioned […]