Skip to content

Instantly share code, notes, and snippets.

View tjfontaine's full-sized avatar

Timothy J Fontaine tjfontaine

View GitHub Profile
@tjfontaine
tjfontaine / bot.js
Created September 27, 2012 15:43
quick cia.vc replacement
'use strict';
var domain = require('domain'),
http = require('http'),
querystring = require('querystring'),
util = require('util');
var irc = require('irc');
var config = require('./config');
@tjfontaine
tjfontaine / test.js
Last active December 10, 2015 05:58
simple comparison of identify command vs binding
var imagick = require('imagick');
var imagemagick = require('imagemagick');
var path = require('path');
var assert = require('assert');
args = [
'-format',
'~~~%w~~~%h~~~%x~~~%C',
path.resolve('./logo.png'),
];
var FFI = require('ffi'),
ArrayType = require('ref-array'),
Struct = require('ref-struct'),
ref = require('ref');
var voidPtr = ref.refType(ref.types.void);
exports.CONSTANTS = {};
var SBMLNamespaces_t = exports.SBMLNamespaces_t = voidPtr;
var SBMLNamespaces_tPtr = exports.SBMLNamespaces_tPtr = ref.refType(SBMLNamespaces_t);
var XMLNamespaces_t = exports.XMLNamespaces_t = voidPtr;
var XMLNamespaces_tPtr = exports.XMLNamespaces_tPtr = ref.refType(XMLNamespaces_t);
=== release test-tls-server-verify ===
Path: simple/test-tls-server-verify
connecting with agent1
connecting with agent2
connecting with agent3
connecting with nocert
connecting with agent1
Running 'Do not request certs. Everyone is unauthorized.'
- unauthed connection: undefined
* unauthed
./node test/simple/test-cluster-disconnect.js
cluster.js:566
port: tcpSelf.address().port || port,
^
TypeError: Cannot read property 'port' of null
at Server.<anonymous> (cluster.js:566:30)
at Server.g (events.js:192:14)
at Server.EventEmitter.emit (events.js:91:17)
at net.js:1004:10
@tjfontaine
tjfontaine / few-runs.txt
Last active December 14, 2015 02:58
test-cluster-disconnect.js race
for i in $(seq 1 20) ; do echo $i && ./node test/simple/test-cluster-disconnect.js ; done
1
2
3
events.js:69
throw arguments[1]; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at errnoException (net.js:846:11)
diff --git a/test/runner.c b/test/runner.c
index 1b9a980..6e4b4f6 100644
--- a/test/runner.c
+++ b/test/runner.c
@@ -102,7 +102,9 @@ int run_tests(int timeout, int benchmark_output) {
continue;
}
- rewind_cursor();
+ if (!tap_output)
#0 0x000000010024b139 in uv___stream_fd (handle=0x10130ff90) at ../deps/uv/src/unix/stream.c:1348
s = (uv__stream_select_t *) 0x4
#1 0x000000010024b938 in uv_write2 (req=0x10130f8a0, stream=0x10130f450, bufs=0x7fff5fbf63a0, bufcnt=1, send_handle=0x10130ff90, cb=0x1000430c0 <node::StreamWrap::AfterWrite(uv_write_s*, int)>) at ../deps/uv/src/unix/stream.c:1203
empty_queue = 1
#2 0x0000000100044a6a in node::StreamWrap::WriteStringImpl<(node::WriteEncoding)1> (args=@0x7fff5fbf6548) at ../src/stream_wrap.cc:451
send_handle = (uv_handle_t *) 0x10130ff90
scope = {
isolate_ = 0x101809400,
prev_next_ = 0x1028376b8,
prev_limit_ = 0x1028376b8,
if system == 'Windows':
if target_arch == 'ia32':
target_arch = 'x86'
os.environ['VS100COMNTOOLS'] = r'g:\vs2010\common7\tools'
p = Popen([r"g:\jenkins\buildwrap.bat", target_arch, "release", "nosign", "msi"])
elif system == 'Darwin':
p = Popen(['make', 'STEP=1', 'pkg'])
else:
p = Popen(['make', 'binary'])
10002/100061: mmap(0x0, 0x8000, 0x3) = 682049536 0
10002/100061: issetugid(0x0, 0x0, 0x0) = 0 0
10002/100061: lstat("/etc\0", 0xBFBFD898, 0x0) = 0 0
10002/100061: lstat("/etc/libmap.conf\0", 0xBFBFD898, 0x0) = -1 Err#2
10002/100061: open("/var/run/ld-elf.so.hints\0", 0x0, 0x0) = 3 0
10002/100061: read(0x3, "Ehnt\001\0", 0x80) = 128 0
10002/100061: lseek(0x3, 0x80, 0x0) = 128 0
10002/100061: read(0x3, "/lib:/usr/lib:/usr/lib/compat:/usr/local/lib\0", 0x2D) = 45 0
10002/100061: close(0x3) = 0 0
10002/100061: access("/lib/libutil.so.9\0", 0x0, 0x0) = 0 0