Skip to content

Instantly share code, notes, and snippets.

Jan Lehnardt janl

View GitHub Profile
View gist:6909724
=CRASH REPORT==== 9-Oct-2013::18:48:11 ===
crasher:
initial call: tcp_acceptor:init/1
pid: <0.11371.0>
registered_name: []
exception exit: {accept_failed,econnaborted}
in function gen_server:terminate/6 (gen_server.erl, line 747)
ancestors: ['tcp_acceptor_sup_0.0.0.0:5672',<0.4631.0>,rabbit_sup,
<0.4472.0>]
messages: []
View node_couchdb.md

Hi, all.

Encouraged by my successful experiment with a Node.js view server, I am now working on a branch, nodejs_couchdb, with the following properties:

  • Remove couchjs from the project
  • Remove dependency on SpiderMonkey, libjs, 1.8.whatever...all that is gone
  • Remove dependency on libcurl
  • (Thus, simplified autoconf version dependency Hell)

Phase 1: Dependency on a "couchjs" executable which you install via npm install couchjs

@cowboy
cowboy / log.js
Created Nov 15, 2012
JavaScript: log= (insanity?)
View log.js
/*
* log= (insanity?)
* http://benalman.com/
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
*/
Object.defineProperty(global, 'log', {
set: function(args) {
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@tobyhede
tobyhede / postsql.sql
Created May 17, 2012
PostgreSQL as JSON Document Store
View postsql.sql
-- PostgreSQL 9.2 beta (for the new JSON datatype)
-- You can actually use an earlier version and a TEXT type too
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8
-- Inspired by
-- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html
-- http://ssql-pgaustin.herokuapp.com/#1
-- JSON Types need to be mapped into corresponding PG types
--
@felixge
felixge / postverzollung.txt
Created May 4, 2012
Example for not wasting your time at the customs office
View postverzollung.txt
TO: zollamt-schoeneberg@zab-schoeneberg.bfinv.de (usually provided on the card you get)
Sehr geehrtes Zollamt,
am DD.MM.YYYY erhielt ich ein Schreiben über den Eingang einer Sendung bei der keine Rechnung angebracht war.
lfd. Nr: <NR>
Empfänger: <Name>, <Adresse>, <PLZ> <Ort>
Bei dem Paket handelt es sich um ein T-Shirt das mir geschenkt wurde da ich in meiner Freizeit kostenlose Software für die Integration mit einem Datenanalyse Dienst geschrieben habe (siehe http://support.metrics.librato.com/knowledgebase/articles/53548). Das T-Shirt ist vermutlich mit dem Logo des Dienstes bedruckt / hat keinen offiziellen Marktwert. Die Materialkosten sind wahrscheinlich ~20 EUR.
@rnewson
rnewson / gist:2387973
Created Apr 14, 2012
CouchDB Future Feature List - Round 2
View gist:2387973
A list of features that we want to see in CouchDB. Needs to be voted on so that it can become a priority queue.
User Facing Features
====================
1. Conflicts are the rule, not the exception
All previous versions of CouchDB hide conflicts by default (selecting
an arbitrary but consistent winning revision). Expert users can find
and resolve conflicts.
@ingenthr
ingenthr / Makefile
Created Jan 21, 2012
Updating toolchain on CentOS
View Makefile
#
# This makefile set up all of the build dependencies we need for building
# the membase server on RedHat Linux
#
# For questions please contact trond@membase.com
#
# Copyright (c) 2010, Membase, Inc.
# All rights reserved.
#
# Set your path to /opt/local/bin:$PATH, then run make build-compile-env
You can’t perform that action at this time.