Skip to content

Instantly share code, notes, and snippets.

View shino's full-sized avatar

Shunichi Shinohara shino

View GitHub Profile

ブロックチェーン勉強会2

  • Thursday, May 26
  • AltCoin といわれるものから、その合意プロトコル的なものについていくつか紹介
  • TL;DR いっぱいありすぎてわかんねえ!

ブロックチェーンとは

ある事実なり履歴を改竄できない形で複製して保持する技術の総称

@shino
shino / beam_decompile.erl
Created December 16, 2015 02:04 — forked from andelf/beam_decompile.erl
Erlang BEAM file decompile to .erl file
#!/usr/bin/env escript
% -*- mode: erlang -*-
main([BeamFile]) ->
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]),
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
app.config field riak.conf variable
-------------------------------------------------------------------------------------------
yokozuna.enabled yokozuna
yokozuna.solr_port yokozuna.solr_port
yokozuna.solr_jmx_port yokozuna.solr_jmx_port
yokozuna.solr_jvm_args yokozuna.solr_jvm_args
yokozuna.yz_dir yokozuna.data_dir
riak_repl.data_root mdc.data_root
riak_core.cluster_mgr mdc.cluster_manager
riak_repl.max_fssource_cluster mdc.max_fssource_cluster
# Documentation for HAProxy
# http://code.google.com/p/haproxy-docs/w/list
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt
# NOTES:
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
-module(lists_vs_func_vs_comp).
-author('cooldaemon@gmail.com').
-export([test/0]).
test() ->
Seqs = lists:seq(0, 500000),
lists:foreach(
fun
({F, TargetName}) ->
-module(couchdb_btree_vs_dets).
-author('cooldaemon@gmail.com').
-export([test/0, test/1]).
test() -> test(1000).
test(Count) ->
KVs = lists:map(
fun (N) -> {N, {foo, bar, baz}} end,
lists:seq(1, Count)