Skip to content

Instantly share code, notes, and snippets.

View mateodelnorte's full-sized avatar

Matt Walters mateodelnorte

View GitHub Profile
bash-3.2$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Apache CouchDB configure 1.1.0, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/couchdb/1.1.0 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --with-erlang=/usr/local/lib/erlang/usr/include --with-js-include=/usr/local/include --with-js-lib=/usr/local/lib
## --------- ##
bash-3.2$ brew doctor
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
bash-3.2$ brew install -v couchdb
==> Downloading https://github.com/apache/couchdb/tarball/1.1.0
File already downloaded in /Users/matt/Library/Caches/Homebrew
/usr/bin/tar xf /Users/matt/Library/Caches/Homebrew/couchdb-1.1.0.0
==> ./bootstrap
./bootstrap
You have bootstrapped Apache CouchDB, time to relax.
bash-3.2$ brew install spidermonkey
Warning: Formula already installed: spidermonkey
bash-3.2$ brew remove
This command requires a keg argument
bash-3.2$ brew remove spidermonkey
Uninstalling /usr/local/Cellar/spidermonkey/1.8.5...
bash-3.2$ brew install couchdb
Also installing dependencies: spidermonkey
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
File already downloaded in /Users/matt/Library/Caches/Homebrew
Error: 500 Internal Server Error
TypeError: Cannot read property 'length' of undefined
at /Users/matt/.node_libraries/geddy-model/lib/adapters/couchdb.js:142:30
at /Users/matt/.node_libraries/geddy-model/lib/adapters/couchdb.js:117:9
at IncomingMessage. (/Users/matt/.node_libraries/geddy-core/lib/clients/couchdb.js:54:9)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Client.onData [as ondata] (http.js:1484:27)
at Client._onReadable (net.js:683:27)
@mateodelnorte
mateodelnorte / gist:1543157
Created December 31, 2011 06:46
support/package_node error
matt$ support/package_node 0.6.1
/var/folders/Uj/UjR343n7GDW444NRiNY9Zk+++TI/-Tmp-/node_XXXX.GqThzPwN ~/Development/heroku-buildpack-nodejs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9059k 100 9059k 0 0 1819k 0 0:00:04 0:00:04 --:--:-- 1919k
x node-v0.6.1/
x node-v0.6.1/.gitattributes
x node-v0.6.1/.gitignore
x node-v0.6.1/AUTHORS
x node-v0.6.1/benchmark/
@mateodelnorte
mateodelnorte / gist:3331782
Created August 12, 2012 13:19
checksum error
npm ERR! Error: shasum check failed for /var/folders/Uj/UjR343n7GDW444NRiNY9Zk+++TI/-Tmp-/npm-1344777461658/1344777461658-0.012702609412372112/tmp.tgz
npm ERR! Expected: 47ac53683daf832bfa952e1774417da47817ae42
npm ERR! Actual: 3bb7b8a676e95a33a0f28f081cf860176b8f67c7
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/sha.js:25:20
npm ERR! at [object Object].<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/sha.js:49:5)
npm ERR! at [object Object].emit (events.js:64:17)
npm ERR! at afterRead (fs.js:1111:12)
npm ERR! at Object.wrapper [as oncomplete] (fs.js:254:17)
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
@mateodelnorte
mateodelnorte / gist:3783610
Created September 25, 2012 18:35
console.log(require('util').inspect(server));
{ _connections: 0,
connections: [Getter/Setter],
allowHalfOpen: true,
_handle: null,
_events:
{ request:
{ [Function: app]
use: [Function],
handle: [Function],
listen: [Function],
@mateodelnorte
mateodelnorte / gist:5602293
Created May 17, 2013 22:03
mockrequire used to override dep2 and supply mocked value.
var mr = require('mockrequire');
var dep = mr('./dep', {
'./dep2': { test: 3 }
});
console.log(dep.one);
console.log(dep.two);
console.log(dep.three);
module.exports = { test: 2 };
@mateodelnorte
mateodelnorte / jade-compile
Created June 11, 2013 19:28
compiling local jade templates for sharing between server and client
var fs = require('fs'),
jade = require('jade'),
util = require('util');
module.exports = new JadeTemplateExporter();
function JadeTemplateExporter(options){
var opts = options || {},
__path = __dirname + '/../views/templates',
__outputPath = __dirname + '/../public/templates/client_templates.js',