Skip to content

Instantly share code, notes, and snippets.

View abackstrom's full-sized avatar

Annika Backstrom abackstrom

View GitHub Profile
2010/09/14 08:29:46 [debug] 9770#0: *7 write new buf t:1 f:0 080DB2B8, pos 080DB2B8, size: 223 file: 0, size: 0
2010/09/14 08:29:46 [debug] 9770#0: *7 http write filter: l:1 f:0 s:223
2010/09/14 08:29:46 [debug] 9770#0: *7 http write filter limit 0
2010/09/14 08:29:46 [debug] 9770#0: *7 writev: 223
2010/09/14 08:29:46 [debug] 9770#0: *7 http write filter 00000000
2010/09/14 08:29:46 [debug] 9770#0: *7 http finalize request: 0, "/blogs.dir/3/files/2010/08/wordpress-answers-beta-300x213.png?" 1
2010/09/14 08:29:46 [debug] 9770#0: *7 set http keepalive handler
2010/09/14 08:29:46 [debug] 9770#0: *7 http close request
2010/09/14 08:29:46 [debug] 9770#0: *7 http log handler
2010/09/14 08:29:46 [debug] 9770#0: *7 run cleanup: 081468C4
server {
listen 69.164.216.5:80 default;
root /var/www/mu.sixohthree.com/html;
server_name_in_redirect off;
#fastcgi_cache_valid 200 20m;
#fastcgi_cache_key "$host$request_uri";
#fastcgi_cache mu;
[gitosis]
daemon = yes
gitweb = yes
loglevel = DEBUG
[group superusers]
members = adam@aziz adam@roku
[group gitosis-admin]
writable = gitosis-admin
ignores = (
{ level = "JOINS PARTS QUITS"; },
{ level = "JOINS PARTS QUITS"; exception = "yes"; channels = ( "#foo" ); }
);
function mediawiki_page( $atts ) {
$title = urlencode($atts['title']);
if( false === ( $content = get_transient( 'mediawiki_' . $title ) ) ) {
$url = 'http://wiki.sixohthree.com/w/index.php?title=' . $title . '&action=render';
$response = wp_remote_get($url);
$content = $response['body'];
set_transient( 'mediawiki_' . $title, $content, 600 );
}
@abackstrom
abackstrom / Makefile
Created November 2, 2010 09:45
CSS and JavaScript Minification/Compression Makefile
#
# css/js minification/compression makefile
#
#
# JS_TARGETS -- js files to minify/gzip
# CSS_TARGETS -- css files to minify/gzip
# CLEANUP -- additional files to delete during "make clean"
#
@abackstrom
abackstrom / rsync.sh
Created May 12, 2011 15:28
Script to reset staging server to production state
#!/bin/sh
function do_rsync {
rsync -avzP --delete "server:$1" "$1"
}
echo -n 'Are you really sure? [y/N] '
read response
@abackstrom
abackstrom / gist:1218415
Created September 15, 2011 03:00
Pinboard.in autocomplete "exact match" bug

Unminified fragment (pin.js, Pin.Tags.prototype.filter, line 884):

if (Pin.Lang.indexOf(words, w) >= 0)  // case-sensitive
{
    lis[i].className = 'selected';
}

Minified:

if(Pin.Lang.indexOf(f,g)>=0||(d&&g===a)||(!d&&g.toLowerCase()===a.toLowerCase())){

@abackstrom
abackstrom / README.md
Created September 15, 2011 14:28
Subversion: Missing Features

A wrapper script for svn to add some missing features.

@abackstrom
abackstrom / README.md
Created September 28, 2011 01:49
wordpress-mu-domain-mapping patches