Skip to content

Instantly share code, notes, and snippets.

@trentm
trentm / console.log
Created April 18, 2012 07:57
markdown2 passing in Python 2.5 - 3.3
$ make test
cd test && python testall.py
-- test with Python 2.5 (/usr/local/bin/python2.5)
markdown2/tm/auto_link ... ok
markdown2/tm/auto_link_email_with_underscore [issue26] ... ok
markdown2/tm/auto_link_safe_mode [issue7, safe_mode] ... ok
markdown2/tm/basic_safe_mode [safe_mode] ... ok
markdown2/tm/basic_safe_mode_escape [safe_mode] ... ok
markdown2/tm/blockquote ... ok
markdown2/tm/blockquote_with_pre ... ok
var restify = require('restify');
var Logger = require('bunyan');
var log = new Logger({name: 'restifypretest'});
var server = restify.createServer({
name: 'restifypretest',
log: log
});
server.pre(function(req, res, next) {
@trentm
trentm / npm-debug.log
Created April 16, 2012 21:53
Attachment for npm issue #2374
info it worked if it ends with ok
verbose cli [ 'node', '/Users/trentm/opt/node-0.6/bin/npm', 'update' ]
info using npm@1.1.16
info using node@v0.6.15
verbose /Users/trentm/opt/node-0.6/bin/node node symlink
verbose config file /Users/trentm/.npmrc
verbose config file /Users/trentm/opt/node-0.6/etc/npmrc
verbose config file /Users/trentm/opt/node-0.6.15/lib/node_modules/npm/npmrc
verbose caching /Users/trentm/tmp/foo/package.json
verbose loadDefaults foo@1.0.0
@trentm
trentm / gist:2344801
Created April 9, 2012 17:14
node 0.6.15 RC2 test failures on my suspect smartos
[root@trent4 ~/tmp/n/rc2/node-v0.6.15]# make test
Waf: Entering directory `/root/tmp/n/rc2/node-v0.6.15/out'
DEST_OS: sunos
DEST_CPU: ia32
Parallel Jobs: 1
Product type: program
Waf: Leaving directory `/root/tmp/n/rc2/node-v0.6.15/out'
'build' finished successfully (0.149s)
-rwxr-xr-x 1 root root 9.9M 2012-04-09 17:08 out/Release/node
python tools/test.py --mode=release simple message
@trentm
trentm / gist:2344669
Created April 9, 2012 16:47
test failures with node 0.6.15 RC1 on Mac 10.6.8
$ wget http://nodejs.org/dist/v0.6.15/node-v0.6.15-RC1.tar.gz
--2012-04-09 09:35:23-- http://nodejs.org/dist/v0.6.15/node-v0.6.15-RC1.tar.gz
Resolving nodejs.org... 8.12.44.238
Connecting to nodejs.org|8.12.44.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10742443 (10M) [application/octet-stream]
Saving to: `node-v0.6.15-RC1.tar.gz'
100%[===========================================================================>] 10,742,443 326K/s in 23s
@trentm
trentm / g++ -dumpspecs
Created April 9, 2012 16:46
failure compiling node 0.6.15 RC1 on smartos
[root@trent4 ~/tmp/n/rc2/node-v0.6.15]# g++ -dumpspecs
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)
*asm_debug:
%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}}
*asm_final:
@trentm
trentm / terminal.txt
Created March 27, 2012 21:19
failure to install latest npm
[14:16:01 trentm@banana:~/joy/amon (master)]
$ which node
/Users/trentm/opt/node-0.6/bin/node
[14:17:29 trentm@banana:~/joy/amon (master)]
$ node --version
v0.6.14
[14:17:31 trentm@banana:~/joy/amon (master)]
$ which npm
/Users/trentm/opt/node-0.6/bin/npm
[14:17:33 trentm@banana:~/joy/amon (master)]
@trentm
trentm / 2697.patch
Created March 6, 2012 22:33
Patch against node v0.6 branch for https://github.com/joyent/node/issues/2697
diff --git a/tools/installer.js b/tools/installer.js
index 487376d..507731b 100644
--- a/tools/installer.js
+++ b/tools/installer.js
@@ -53,18 +53,41 @@ function remove(files) {
});
}
+// Add/update shebang (#!) line
+function shebang(line, file) {
@trentm
trentm / publish.log
Created February 10, 2012 22:13
Info for npm ticket.
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/Users/trentm/opt/node-0.6/bin/npm',
npm verb cli '--loglevel=silly',
npm verb cli 'publish' ]
npm info using npm@1.1.1
npm info using node@v0.6.10
npm verb /Users/trentm/opt/node-0.6/bin/node node symlink
npm verb config file /Users/trentm/.npmrc
npm verb config file /Users/trentm/opt/node-0.6/etc/npmrc