Skip to content

Instantly share code, notes, and snippets.

View simonvc's full-sized avatar
💭
Hiring Go Engineers

Simon Vans-Colina simonvc

💭
Hiring Go Engineers
View GitHub Profile
@simonvc
simonvc / hostedgraphite
Created April 11, 2013 14:07
quick little recipe to push riak stats to hostedgraphite.com
import json
from urllib2 import urlopen
import socket
UDP_ADDRESS = "carbon.hostedgraphite.com"
UDP_PORT = 2003
RIAK_STATS_URL='http://localhost:11098/stats'
HG_API_KEY='YOUR_API_KEY'
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bootp_enabled</key>
<false/>
<key>detect_other_dhcp_server</key>
<integer>1</integer>
<key>dhcp_enabled</key>
<array>
<string>en3</string>
@simonvc
simonvc / gist:4761844
Created February 12, 2013 11:58
How to load 10k keys into riak
for x in {1..10000};do curl -v -X PUT -H 'Content-type: text/text' -d "This is some data $x" http://127.0.0.1:11098/riak/test/$x; done
git@github.com:simonvc/riak-dev-cluster.git
rake bootstrap