Skip to content

Instantly share code, notes, and snippets.

View DTrejo's full-sized avatar

David Trejo DTrejo

View GitHub Profile
@DTrejo
DTrejo / get em
Created July 8, 2011 05:58
params
var express = require('express')
, url = require('url')
, util = require('util')
, app = express.createServer()
;
app.get('/getData', function(req, res){
console.log(util.inspect(req.query, false, 2));
res.send('Hello World, ' + req.query.start
@DTrejo
DTrejo / err.log
Created August 27, 2011 19:38
socket.io install errors
~/Desktop§ npm install socket.io
npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.dev'
npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.ino'
npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.nlink'
npm ERR!
@DTrejo
DTrejo / log.log
Created August 28, 2011 02:38
ssh -vv hollaback.no.de
ssh -vv [email protected]
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /Users/david/.ssh/config
debug1: Applying options for hollaback.no.de
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to hollaback.no.de [64.30.138.193] port 36023.
debug1: Connection established.
debug1: identity file /Users/david/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
@DTrejo
DTrejo / enclosure_escape.py
Created September 15, 2011 23:07
fixed the indentation
#!/usr/bin/env python
import roslib; roslib.load_manifest('enclosure_escape')
import rospy
from geometry_msgs.msg import Twist
from turtlebot_node.msg import TurtlebotSensorState
# global variables
bump = False
# listen (adapted from line_follower
def processSensing(TurtlebotSensorState):
@DTrejo
DTrejo / bad-ttl.js
Created October 22, 2011 05:17
bad ttl, not in seconds :|
var redis = require('redis'),
client = redis.createClient();
client.on("error", function (err) { console.log("Error " + err.stack) });
client.set('hello', 'mjr');
var timestamp = (new Date()).getTime() + 400e3;
client.expireat('hello', timestamp, function(err, set) {
client.ttl('hello', function (err, ttl) {
console.log(ttl - timestamp);
});
var fs = require('fs')
var stdout = fs.readFileSync('./tap.log', 'utf8');
var TapConsumer = require("tap-consumer");
var tc = new TapConsumer;
tc.on('data', function(c) {
console.log('test result>',c);
});
tc.on('end', function(err, total, passed) {
@DTrejo
DTrejo / 9confdebugmakemaketestall.log
Created November 5, 2011 07:14
0.6.0rc2 mac 10.6.8 testing
~/Downloads/node-v0.6.0§ ./configure --debug && make && make test-all >> config-debug-make-make-test-all.log
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : yes
@DTrejo
DTrejo / 8-gcc-v
Created November 5, 2011 07:41
0.6.0rc2 mac 10.6.8 testing
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
@DTrejo
DTrejo / 9gdb.log
Created November 5, 2011 08:10
logs & crash
~/Downloads/node-v0.6.0§ gdb --args out/Debug/node test/simple/test-assert.js
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........... done
/Dropbox/dev/npmpants/slave/test(master)§ npm test nano | pbcopy
sh: ./node_modules/ensure/bin/tap.js: No such file or directory
npm ERR! [email protected] test: `./node_modules/ensure/bin/tap.js tests/*/*.js`
npm ERR! `sh "-c" "./node_modules/ensure/bin/tap.js tests/*/*.js"` failed with 127
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is most likely a problem with the nano package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/ensure/bin/tap.js tests/*/*.js