Skip to content

Instantly share code, notes, and snippets.

View twogood's full-sized avatar

David Eriksson twogood

View GitHub Profile
@twogood
twogood / gist:2820806
Created May 28, 2012 19:29
Uncaught Syntax error, unrecognized expression: [class^='add:the-comment-list':]
--- wp-lists.dev.js.orig 2009-11-29 11:29:12.000000000 +0100
+++ wp-lists.dev.js 2012-05-28 21:56:43.000000000 +0200
@@ -62,7 +62,7 @@
if ( !s ) { return false; }
- if ( !e.is("[class^=add:" + list.id + ":]") ) { return !wpList.add.call( list, e, s ); }
+ if ( !e.is("[class^='add:" + list.id + ":']") ) { return !wpList.add.call( list, e, s ); }
if ( !s.element ) { return true; }
@twogood
twogood / etc-dokuwiki-local.php
Created February 9, 2012 07:27
/etc/dokuwiki/local.php for multiple DokuWiki installations in Ubuntu
<?php
$host = strtolower($_SERVER['HTTP_HOST']);
$file['local'] = '/etc/dokuwiki/'.$host.'/local.php';
require_once($file['local']);
$prefix = '/var/lib/dokuwiki/'.$host.'/';
$conf['olddir'] = $prefix.'attic';
$conf['cachedir'] = $prefix.'cache';
$conf['lockdir'] = $prefix.'locks';
@twogood
twogood / sphinx.conf.part
Created January 4, 2012 13:10
sphinx åäö
source loppis_posts
{
type = mysql
sql_host = localhost
sql_user = user
sql_pass = pass
sql_db = loppis_dev
sql_port = 3306 # optional, default is 3306