Skip to content

Instantly share code, notes, and snippets.

View mateodelnorte's full-sized avatar

Matt Walters mateodelnorte

View GitHub Profile
# Welcome to the InfluxDB configuration file.
# If hostname (on the OS) doesn't return a name that can be resolved by the other
# systems in the cluster, you'll have to set the hostname to an IP or something
# that can be resolved here.
# hostname = ""
bind-address = "0.0.0.0"
# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
# Make mouse useful in copy mode
set -g mode-mouse on
set -g mouse-resize on
set -g mouse-select-pane on
set -g mouse-select-window on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Scroll History
#!/usr/bin/perl
#
# Support .gitslave files, recursive processing of git commands into slave directories
#
# ++Copyright LIBBK++
#
# Copyright (c) 2003 The Authors. All rights reserved.
#
# This source code is licensed to you under the terms of the file
# LICENSE.TXT in this release for further details.
@mateodelnorte
mateodelnorte / jade-compile.js
Created June 11, 2013 19:29
compiling local jade templates to js functions 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',
@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',
module.exports = { test: 2 };
@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);
@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: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: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/