Skip to content

Instantly share code, notes, and snippets.

View justmoon's full-sized avatar

Stefan Thomas justmoon

View GitHub Profile
moon@clymene:/atlas/www/node-bitcoin-p2p$ valgrind -- node test/util.js
==2201== Memcheck, a memory error detector
==2201== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2201== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2201== Command: node test/util.js
==2201==
·==2201== Invalid read of size 4
==2201== at 0x4101A3E: BN_free (in /lib/libcrypto.so.0.9.8)
==2201== by 0x8043EA8: base58_encode(v8::Arguments const&) (native.cc:214)
==2201== by 0x81AA79D: v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>) (in /usr/local/bin/node)
@justmoon
justmoon / leakdemo.js
Created June 30, 2011 03:39
node-binary/node-chainsaw memory leak demo
var profiler = require('v8-profiler');
var Binary = require('binary');
var EventEmitter = require('events').EventEmitter;
var em = new EventEmitter;
var CHAIN_LENGTH = 5000;
var benchmarkTimer;
@justmoon
justmoon / 0001-Added-EJS-Embedded-JS-support-to-nXhtml.patch
Created December 16, 2010 18:47
[PATCH] Added EJS (Embedded JS) support to nXhtml.
From 89b8b1c03fb9f5e88df9fc55895b618ce90b551b Mon Sep 17 00:00:00 2001
From: Stefan Thomas <[email protected]>
Date: Thu, 16 Dec 2010 18:38:34 +0000
Subject: [PATCH] Added EJS (Embedded JS) support to nXhtml.
---
nxhtml/nxhtml-autoload.el | 1 +
nxhtml/nxhtml-mumamo.el | 17 +++++++++++++++++
util/majmodpri.el | 1 +
util/mumamo-chunks.el | 31 +++++++++++++++++++++++++++++++