Skip to content

Instantly share code, notes, and snippets.

@bolstad
bolstad / gearman on debian
Created April 19, 2012 16:24
setup gearman
apt-get install build-essential libboost1.42-dev libboost-dev libboost-program-options-dev libboost-thread-dev libevent-dev uuid-dev php-pear php5-dev
wget https://launchpad.net/gearmand/trunk/0.32/+download/gearmand-0.32.tar.gz
wget http://pecl.php.net/get/gearman-1.0.2.tgz
<?php
echo "memory use: " . memory_get_usage() . "\n";
$configdir = __FILE__;
$configdir = preg_replace('|wp-content\/.*|','',$configdir);
$configdir .= 'wp-load.php';
error_reporting(E_ALL);
@bolstad
bolstad / bulktimezone.php
Created March 27, 2012 11:47
bulk timezone changer for wordpress
<?php
echo "memory use: " . memory_get_usage() . "\n";
$configdir = __FILE__;
$configdir = preg_replace('|wp-content\/.*|','',$configdir);
$configdir .= 'wp-load.php';
error_reporting(E_ALL);
@bolstad
bolstad / disable-plugins-when-doing-local-dev.php
Created June 24, 2011 12:10 — forked from markjaquith/disable-plugins-when-doing-local-dev.php
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/