Skip to content

Instantly share code, notes, and snippets.

Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.1)
Installing beefcake (0.3.7)
Installing builder (3.2.2)
Using bundler (1.3.5)
Installing diff-lcs (1.2.5)
Installing excon (0.31.0)
Installing fakeweb (1.3.0)
map = @bucket.find_crdt 'my-map-key'
map
# alpha: register
# bravo: set
# charlie: map
# charlie.zulu: map
# charlie.zulu.yankee: counter
# delta: counter
@bkerley
bkerley / gist:6818362
Last active December 24, 2015 15:09
basho repos i'm mirroring
#!/usr/bin/env bash
mirror() {
local repo="$1"
(cd "$repo.git" && git fetch -q && git gc) || (git clone --bare "https://github.com/basho/$repo.git")
}
cd $WORKSPACE
mirror riak-ruby-client
/*
* Font Awesome 3.2.1
* the iconic font designed for Bootstrap
* ------------------------------------------------------------------------------
* The full suite of pictographic icons, examples, and documentation can be
* found at http://fontawesome.io. Stay up to date on Twitter at
* http://twitter.com/fontawesome.
*
* License
* ------------------------------------------------------------------------------
@bkerley
bkerley / gist:6383271
Last active December 21, 2015 23:38
Riak Ruby Client and Link Walking

Good afternoon.

For Riak 2.0, we're no longer supporting HTTP in official clients. This cuts down on the implementation size substantially[1] and means we can get client versions supporting new server features in your hands faster.

Unfortunately, there are a few features that don't have protocol buffers implementations. For example, Luwak support is already gone from the next version of the client.

## Generated from riak.proto for
require "beefcake"
class RpbErrorResp
include Beefcake::Message
end
class RpbGetServerInfoResp
@bkerley
bkerley / gist:6004535
Created July 15, 2013 23:46
riak-ruby-client wishlist
  • ugh i hate beefcake
  • maybe hate is too strong, but I don't like the way it's integrated
  • beefcake feels unnecessarily divorced from the base protobuffs backend
  • i don't enjoy copying message definitions
  • scan riak_pb message definitions, build classes, provide a place for adding/overriding methods
  • take all that http code and set it on fire for 2.0, burn it to the ground
  • also the big-ass list of code to message names should be auto-generated or at least less shitty
curl --get 'https://api.twitter.com/1.1/statuses/show.json' --data 'id=353218566180442112' --header 'Authorization: OAuth oauth_consumer_key="DCtwdGNS38Sr9JNXwS53cQ", oauth_nonce="87c91da7f4d6d61ec9d81fd0fb7c7980", oauth_signature="%2FD09dk9pNQ4uj3szTpYWThetfc8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1373049118", oauth_token="7865582-sVflpbIO5WH1IDf2oSWlUFIfhNsRMq1aZQivXB3gI0", oauth_version="1.0"' | python -mjson.tool
@bkerley
bkerley / repl.zsh
Created July 5, 2013 15:22
riak-admin repl
#!/usr/bin/env zsh
RIAK_ADMIN_PATH='/Users/bkerley/erlang/riak/riak/dev/dev1/bin/riak-admin'
echo -n "riak-admin> "
while read inputline; do
echo `$RIAK_ADMIN_PATH $inputline`
echo -n "riak-admin> "
done