Skip to content

Instantly share code, notes, and snippets.

@daguej
daguej / req.js
Created January 22, 2016 00:50
request leak test
var request = require('request'),
fs = require('fs');
request({
url: 'http://localhost:5555/r/' + process.argv[2]
}, function(err, res, body) {
console.log(err, res && res.statusCode, body);
});
var foo; foo.bar;
@daguej
daguej / router first.js
Created March 6, 2013 15:56
Test performance of Express router vs static first
var express = require('express')
, app = express();
app.use(function(req, res, next) {
var t = Date.now(), end = res.end;
res.end = function() {
end.apply(this, arguments);
console.log(req.path, Date.now() - t);
};
next();
@daguej
daguej / license.txt
Created March 23, 2012 16:28
IE App Compat VM EULA
MICROSOFT SOFTWARE LICENSE TERMS FOR A VIRTUAL HARD DISK IMAGE OF AN EVALUATION COPY OF THE FOLLOWING MICROSOFT PRODUCT:
WINDOWS 7
MICROSOFT WINDOWS INTERNET EXPLORER 8
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the evaluation software named above which may include associated media, printed materials, “online” or electronic documentation, and Internet-based services provided as part of this Virtual Hard Disk Image (all collectively referred to as the “software”). The terms also apply to any Microsoft
• updates,
• supplements,
• Internet-based services, and
• support services
for this software, unless other terms accompany those items. If so, those terms apply.