Skip to content

Instantly share code, notes, and snippets.

@bkw
bkw / create-logcheck-patterns-hires.pl
Last active August 29, 2015 14:05
create new logcheck patterns for rsyslog with high-precision timestamps
#!/usr/bin/env perl
use strict;
use warnings;
use FileHandle;
use File::Basename;
# find configured report level
my $reportLevel = 'server';
my $configFh = FileHandle->new('/etc/logcheck/logcheck.conf', 'r');
@bkw
bkw / macports-nodejs-couchdb.md
Created January 27, 2013 16:28
Unsuck Macports CouchDB With Node.JS

Unsucking Macports CouchDB with node.js

Why?

The macports couchdb port has problems. The hip thing to do would probably be switching over to homebrew, but I dislike brew for a couple of reasons, which are beyond the scope of this writeup. Also, building from source failed for me with some strange problem in the makefile, that I'll hunt down later.

So, what's wrong with it?

  • couchdb's javascript viewserver couchjs links against libjs.dylib, which is supplied by the spidermonkey port. That port is ancient, but cannot be easily upgraded because of, well... mongodb. That means: no ES5-goodness for the rest of us. :-(