Skip to content

Instantly share code, notes, and snippets.


Daniel Berlinger danielberlinger

View GitHub Profile
danielberlinger / shopify_stats.rb
Created Mar 8, 2012 — forked from tobi/shopify_stats.rb
What would a stats server backed by redis look like?
View shopify_stats.rb
require 'rubygems'
require 'redis'
$redis =
class Request
def referrer
View redis-counters.js
// Additional code in node-http-proxy.js
var crypto = require('crypto');
var redis = require('redis');
var client = redis.createClient(config.opt.redis_port, '');
client.auth(config.opt.redis_auth, function(result) {
util.log("Redis authenticated.");