Skip to content

Instantly share code, notes, and snippets.

Daniel Berlinger danielberlinger

Block or report user

Report or block danielberlinger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View client.go
package main
import (

Keybase proof

I hereby claim:

  • I am danielberlinger on github.
  • I am danielberlinger ( on keybase.
  • I have a public key whose fingerprint is 1512 FB8F 1103 788C AF62 CBB3 E4A9 479B 3924 D175

To claim this, I am signing this object:

danielberlinger / rethinkdb_tutorial.txt
Last active Jun 2, 2016
Rolled together a startup of rethinkdb on OS X and a couple of fixes from a tutorial
View rethinkdb_tutorial.txt
This tutorial had a few bugs in it:
getting started on Mac OS X...
The first few items are run in the terminal, and while I'm sure there are other ways to load the data,
I just went with what was in the tutorial, which included using the Python driver for Rethinkdb via pip.
danielberlinger / performance.rb
Created Mar 27, 2012
A Rails initializer for using Rails 3 notifications and statsd
View performance.rb
require 'statsd'
$statsd ='your_host_here')
ActiveSupport::Notifications.subscribe /process_action.action_controller/ do |*args|
event =*args)
controller = event.payload[:controller]
action = event.payload[:action]
format = event.payload[:format] || "all"
format = "all" if format == "*/*"
status = event.payload[:status]
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.");
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
danielberlinger / deploy.rb
Created Feb 13, 2012
A couple of helpers for capistrano deploys
View deploy.rb
#Speeds up deployment by creating a copy of the project on the server,
set :deploy_via, :remote_cache
task :run_branch_check do
before "deploy", "run_branch_check"
before "deploy:long", "run_branch_check"
danielberlinger /
Created Dec 19, 2011
How homebrew starts redis server
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
View simple_redistogo_connection.rb
require 'rubygems'
require 'uri'
require 'redis'
uri = URI.parse('redis://username:password@host:1234/')
unless uri.nil?
p uri.port
p uri.password
p '---'
danielberlinger / .gitignore
Created Apr 27, 2011
Extendable Metal Redirects
You can’t perform that action at this time.