Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# For each staked validator, get the release version
# command to call miner of the desired validator to use
MINER=./_build/validator/rel/miner/bin/miner
VALS=$(${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}')
${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}' | xargs -P 0 -I{} ${MINER} peer connect /p2p/{}
@Vagabond
Vagabond / gist:1242755
Created September 26, 2011 17:08 — forked from IgorKarymov/gist:1224897
riak if_not_modified
-module(test).
-export([
test/0
]).
-define(RIAK_HOST, "127.0.0.1").
-define(RIAK_PORT, 8087).
-module(assignment).
-export([print/1]).
print(List) ->
PrintList = fun({CN, IN, CT, CC, CE, RN}) ->
io:format("~p ~p ~p ~p ~p ~p~n", [CN, IN, CT, CC, CE, RN])
end,
list:foreach(PrintList, List).
printList(L) ->