Skip to content

Instantly share code, notes, and snippets.

View ciaranj's full-sized avatar

Ciaran Jessup ciaranj

View GitHub Profile
@ciaranj
ciaranj / SampleCeresStatsdConfig
Created February 23, 2014 10:46
Sample ceres statsd config for woody.
/*
Required Variables:
port: StatsD listening port [default: 8125]
Graphite Required Variables:
(Leave these unset to avoid sending stats to Graphite.
Set debug flag and leave these unset to run in 'dry' debug mode -

Keybase proof

I hereby claim:

  • I am ciaranj on github.
  • I am ciaranj (https://keybase.io/ciaranj) on keybase.
  • I have a public key whose fingerprint is 78D2 F339 7EEA 212A 6A2E E69B EC67 0DBF AAB2 1C44

To claim this, I am signing this object:

diff --git a/src/node.js b/src/node.js
index afc70bf..8417460 100644
--- a/src/node.js
+++ b/src/node.js
@@ -138,11 +138,10 @@ process.mixin = function() {
if (target === d.value) {
continue;
}
-
if (deep && d.value && typeof d.value === "object") {
Bob:express-auth ciaran$ kiwi --version
0.2.5
Bob:express-auth ciaran$ kiwi install oauth
install : oauth
resolve : version 0.0.4
create : /Users/ciaran/.kiwi/current/seeds/oauth/0.0.4
fetch : 0.0.4.seed
unpack : /Users/ciaran/.kiwi/current/seeds/oauth/0.0.4/oauth.seed
remove : /Users/ciaran/.kiwi/current/seeds/oauth/0.0.4/oauth.seed
check : dependencies
~/.node_libraries/connect/middleware/session.js:34
store = options.store || new MemoryStore;
^
TypeError: undefined is not a function
var connect = require('connect');
var url= require('url')
var MemoryStore = require('connect/middleware/session/memory');
var OAuth= require('oauth').OAuth;
var oa= new OAuth("http://localhost:3000/oauth/request_token",
"http://localhost:3000/oauth/access_token",
"JiYmll7CX3AXDgasnnIDeg", "mWPBRK5kG2Tkthuf5zRV1jYWOEwnjI6xs3QVRqOOg",
"1.0A", "http://localhost:4000/oauth/callback", "HMAC-SHA1");
function routes(app) {
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="6" time="0.053" errors="0" skipped="0" tests="6" name="twitter4j.util.TimeSpanConverterTest">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries"/>
<property name="java.vm.version" value="17.1-b03-307"/>
<property name="awt.nativeDoubleBuffering" value="true"/>
<property name="gopherProxySet" value="false"/>
<property name="mrj.build" value="10M3261"/>
<property name="java.vm.vendor" value="Apple Inc."/>
With these changes everything seems to work just peachy-fine for me. Is your Application configured as a 'client' type rather than a browser type? (Client is correct for pin verification)
From f8c22a73e8c516963d8958796334413ccb243f17 Mon Sep 17 00:00:00 2001
From: ciaranj <ciaranj@gmail.com>
Date: Sun, 6 Feb 2011 19:36:23 +0000
Subject: [PATCH] Try and find qs on the path if npm module not there
---
lib/connect/middleware/bodyDecoder.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/connect/middleware/bodyDecoder.js b/lib/connect/middleware/bodyDecoder.js
function rehash (values) {
var hash = {}
, len
, i=0;
if (!Array.isArray(values)) return hash;
len= values.length
if( len % 2 == 1) return []; //mis-matched array ?
while( i < len) { // for(i =0 ;i < len; ) {
hash[values[i++]]= values[i++];