Skip to content

Instantly share code, notes, and snippets.

View gist:578976
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
View mu.sixohthree.com.conf
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;
View gist:590047
[gitosis]
daemon = yes
gitweb = yes
loglevel = DEBUG
[group superusers]
members = adam@aziz adam@roku
[group gitosis-admin]
writable = gitosis-admin
View irssi config
ignores = (
{ level = "JOINS PARTS QUITS"; },
{ level = "JOINS PARTS QUITS"; exception = "yes"; channels = ( "#foo" ); }
);
View gist:613475
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 Nov 2, 2010
CSS and JavaScript Minification/Compression Makefile
View 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
Script to reset staging server to production state
View rsync.sh
#!/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 Sep 15, 2011
Pinboard.in autocomplete "exact match" bug
View gist:1218415

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 Sep 15, 2011
Subversion: Missing Features
View README.md

A wrapper script for svn to add some missing features.

@abackstrom
abackstrom / README.md
Created Sep 28, 2011
wordpress-mu-domain-mapping patches