Skip to content

Instantly share code, notes, and snippets.

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
deb http://binaries.erlang-solutions.com/debian precise contrib
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install esl-erlang
@nivertech
nivertech / erl.d
Created May 31, 2014 17:16 — forked from Licenser/erl.d
erlang$1:::*-function-entry
{
self->funcall_entry_ts[copyinstr(arg1)] = vtimestamp;
}
erlang$1:::function-return
/self->funcall_entry_ts[copyinstr(arg1)]/
{
@time[copyinstr(arg1)] = quantize((vtimestamp - self->funcall_entry_ts[copyinstr(arg1)] ) / 1000);
}

An RSVP-list demo on top of Riak 2.0 Datatypes

This is a purely in-browser demo of Riak 2.0's sets datatype. The application code uses React.js and jquery.

To get started, make a 5-node devrel cluster of the 2.0 preview using these instructions. After your cluster is built, make a bucket-type for sets:

cd dev/dev1
bin/riak-admin bucket-type create sets '{"props":{"datatype":"set","allow_mult":true}}'
bin/riak-admin bucket-type activate sets

Installation of Erlang R16B03-1 and 17.0-rc2 to OS X 10.9.2 with Xcode and wxWidgets 3.0.0

Installing wxWidgets

var redisScan = require('redisscan');
var redis = require('redis');
var riak = require('riakpbc');
var async = require('async');
var args = require('optimist')
.usage('--import or --export Redis archives in Riak\nUsage: $0')
.boolean('import')
.boolean('export')
.boolean('debug')
.describe('import', "Import from Riak to Redis")
-module(helpers).
is_pid_alive(Pid) when node(Pid) =:= node() ->
is_process_alive(Pid);
is_pid_alive(Pid) ->
lists:member(node(Pid), nodes()) andalso
(rpc:call(node(Pid), erlang, is_process_alive, [Pid]) =:= true).
get_current_time() ->
Now = calendar:local_time(),
# Erlang R16B HiPE with Rebar
#
# VERSION 0.0.1
FROM base
MAINTAINER Son Tran-Nguyen "[email protected]"
RUN apt-get update
RUN apt-get install -y git build-essential libncurses5-dev openssl libssl-dev curl
# For HiPE, requires M4