mini code and tools
onstartup:
./.erlang
$HOME/.erlang
Fromhttp://mryufeng.iteye.com/blog/pdf
引用
io:format("~s~n", [binary_to_list(erlang:system_info(info))]).
netstat-n|awk'/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}'
ethtool-Seth0
inet:i().
ets:i().
erts_debug:set_internal_state(available_internal_state,true).
slave
pool
erl_boot_server
shell
timer:tc(MFA)
Alg+g
>h
random
timer
%% -define(debug, true). -ifdef(debug). -define(INFOMSG(X), error_logger:info_msg("{~p,~p}: ~p~n", [?MODULE, ?LINE, X])). -else. -define(INFOMSG(X), true). -endif. -ifdef(debug). -define(LOG(X), io:format("{~p,~p}: ~p~n", [?MODULE,?LINE,X])). -else. -define(LOG(X), true). -endif. -record(verid, {id = 0, version = 0}). -record(diskid, {id = 0, version = 0}). -record(chkid, {id = 0, version = 0}). -record(fileid, {id = 0, version = 0}). -record(mdp_chkget_req, { chkid = #chkid{} :: #chkid{}, chkno = 0 :: integer(), chkrep = 0 :: integer(), chklen = 0 :: integer() }). -record(mdp_chkget_rep, { chkid = #chkid{} :: #chkid{}, chkrep = 0 :: integer(), disks = [] :: list() }). -record(mdp_chkload_req, { chkid = #chkid{} :: #chkid{}, chkno = 0 :: integer(), chkrep = 0 :: integer(), chklen = 0 :: integer() }). -record(mdp_chkload_rep, { chkid = #chkid{} :: #chkid{}, chkrep = 0 :: integer(), disks = [] :: list() }).
相关推荐
chenpro 2020-08-09
NVEFLY 2020-07-04
liym 2020-06-21
OnMyHeart 2020-06-06
天空windy 2020-06-03
87447007 2020-05-16
OnMyHeart 2020-05-09
NVEFLY 2020-04-17
M守护神 2020-03-28
大史哥哥 2020-03-07
wbingyang 2020-02-27
liym 2020-02-22
zhoucheng0 2020-02-19
wbingyang 2020-02-14
OnMyHeart 2020-01-14
OnMyHeart 2020-01-08
大史哥哥 2019-12-31
wbingyang 2019-12-31