Skip to content

Instantly share code, notes, and snippets.

@richardms
richardms / proxy_memleak.js
Created June 24, 2011 11:34
Possible memory leak in node-proxy
// Run with:
// node --trace-gc proxy_memleak.js
var Proxy = require("node-proxy"),
fs = require('fs'),
util = require("util") ;
var count = 100000 ;
@richardms
richardms / rimraf-ignite.js
Created August 11, 2011 16:51
ignite.js rimraf implementation
var ignite = require('ignite'),
path = require('path') ;
var rmrfFactory ;
function rmrf (fire, dir, opts)
{
opts = opts || {} ;
var gently = opts.gently, maxBusyRetries = opts.maxBusyRetries || 3 ;
var emfTimeout = 5 ;
Apr-08 16:19:21 <1> : EXEC [uname -m]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkfs.ext4" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkfs.ext3" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkfs.ext2" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mksquashfs" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkclicfs" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkclicfs" 2>&1]
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkfs.btrfs" 2>&1]
Apr-08 16:19:21 <1> : warning: mkfs.btrfs not found
Apr-08 16:19:21 <1> : EXEC [bash -c "PATH=$PATH:/sbin which mkclicfs" 2>&1]