Skip to content

Instantly share code, notes, and snippets.

View piscisaureus's full-sized avatar
🦕

Bert Belder piscisaureus

🦕
View GitHub Profile
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

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 = [email protected]: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:

...
npm http GET https://registry.npmjs.org/which
gyp http GET http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/Users/piscisaureus/.node-gyp/0.8.5'
gyp ERR! System Darwin 12.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/vock/node_modules/pripub
gyp ERR! node -v v0.8.5
* node: tag Encode and friends NODE_EXTERN (Ben Noordhuis)
* fs: fix ReadStream / WriteStream missing callback (Gil Pedersen)
* fs: fix readFileSync("/proc/cpuinfo") regression (Ben Noordhuis)
* installer: don't assume bash is installed (Ben Noordhuis)
* Report errors properly from --eval and stdin (isaacs)
var buf = null;
var offset = 0;
stream.on('data', function(buf_) {
assert(!buf);
buf = buf_;
stream.emit('readable');
var assert = require('assert'),
fs = require('fs'),
path = require('path'),
tls = require('tls'),
CERT_DIR = path.resolve(__dirname, '../test/fixtures');
var target_connections = 10000,
concurrency = 10,
initiated_connections = 0,
D:\libuv>node tools\release.js
Updating AUTHORS and .mailmap
Warning: author appears twice in AUTHORS file: Brandon Philips
Warning: author appears twice in AUTHORS file: Brian White
Changes were made to AUTHORS or .mailmap. Please review:
diff --git a/.mailmap b/.mailmap
index d22a6e1..3394931 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1,11 +1,13 @@
@piscisaureus
piscisaureus / pub.key
Created June 26, 2012 01:38
PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (MingW32)
mQENBE/pEkoBCACtr5WCAklniyuawn8jLoU7iE5RJ3KjgRpp9Jp7oYczCXgjK3ta
SQwACbjYHN6mO/mW7povj6bpYjwQbRriIGOOQbM5stsi1iSOgl7M7LRQWEkOCFuI
pjnL/LEgrcO2fVskINf86MyXgBTfTW3szDp+WDDGHoXFis17B17wRkTNJMm6sJ+L
INLTsjLo++6aHjHmCYmY5jmP2kMfI3kiYkGMG6r3RaOEqq9TJc1cGFqNEdg46Gio
4NUkeiOE1lPoe1h0x0PIXn2AJmJt0bfuqVFAD4/5i9cfg990Ly3MnnydKV3ALuLQ
n2rwyY4DtnkDY7LONt1qDW/NzjAZz3DW7lTxABEBAAG0IkJlcnQgQmVsZGVyIDxi
ZXJ0YmVsZGVyQGdtYWlsLmNvbT6JATUEEwECAB8FAk/pEkoCGwMGCwkIBwMCBBUC
D:\node4>release\node test\simple\test-tls-server-verify.js
Running 'Allow only authed connections with CA1'
NET: bind to 0.0.0.0
connecting with agent1
NET: onconnection
TLS: onhandshakestart
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
=== debug test-child-process-detached ===
Path: simple/test-child-process-detached
Command: D:\node4\Debug\node.exe D:\node4\test\simple\test-child-process-detached.js
--- TIMEOUT ---
=== debug test-cluster-http-pipe ===
Path: simple/test-cluster-http-pipe
events.js:65
throw arguments[1]; // Unhandled 'error' event
var Url = require('url'),
Http = require('http'),
Fs = require('fs');
function download(url, filename, cb) {
var urlObject = Url.parse(url),
file;
var request = Http.get(urlObject, function(res) {