This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: $ git clone git://github.com/basho/riak.git | |
Cloning into riak... | |
remote: Counting objects: 10820, done. | |
remote: Compressing objects: 100% (3476/3476), done. | |
remote: Total 10820 (delta 7223), reused 10468 (delta 7020) | |
Receiving objects: 100% (10820/10820), 8.83 MiB | 351 KiB/s, done. | |
Resolving deltas: 100% (7223/7223), done. | |
1.9.2 ip-192-168-1-126: $ cd riak/ | |
1.9.2 ip-192-168-1-126: [master] $ make rel | |
./rebar get-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ rel/riak/bin/riak ping | |
Learning Erlang in "/Users/dayas/Learning/erlang/riak/rel/riak" | |
/Users/dayas/Learning/erlang/riak/rel/riak | |
Now in:"/Users/dayas/Learning/erlang/riak/rel/riak" | |
Node 'riak@127.0.0.1' not responding to pings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p dev | |
(cd rel && ../rebar generate target_dir=../dev/dev1 overlay_vars=vars/dev1_vars.config) | |
Learning Erlang in "/Users/dayas/Learning/erlang/riak/rel" | |
/Users/dayas/Learning/erlang/riak/rel | |
Now in:"/Users/dayas/Learning/erlang/riak/rel" | |
==> rel (generate) | |
mkdir -p dev | |
(cd rel && ../rebar generate target_dir=../dev/dev2 overlay_vars=vars/dev2_vars.config) | |
Learning Erlang in "/Users/dayas/Learning/erlang/riak/rel" | |
/Users/dayas/Learning/erlang/riak/rel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ pwd | |
/Users/dayas/Learning/erlang/riak/dev | |
1.9.2 ip-192-168-1-126: [master] $ ls dev1 | |
bin data erts-5.8.1 etc lib log releases | |
1.9.2 ip-192-168-1-126: [master] $ ls dev1/erts-5.8.1/ | |
bin include lib src | |
1.9.2 ip-192-168-1-126: [master] $ ls dev1/erts-5.8.1/bin/ | |
beam epmd erlexec inet_gethost run_test | |
beam.smp erl escript nodetool start | |
child_setup erlc heart run_erl to_erl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ ls -lah dev1/erts-5.8.1/bin/ | |
total 9928 | |
drwxr-xr-x 17 dayas dayas 578B Apr 6 18:13 . | |
drwxr-xr-x 6 dayas dayas 204B Apr 6 18:13 .. | |
-rwxr-xr-x 1 dayas staff 2.2M Apr 6 15:26 beam | |
-rwxr-xr-x 1 dayas staff 2.4M Apr 6 15:26 beam.smp | |
-rwxr-xr-x 1 dayas staff 14K Apr 6 15:26 child_setup | |
-rwxr-xr-x 1 dayas staff 49K Apr 6 15:26 epmd | |
-rwxr-xr-x 1 dayas staff 1.1K Apr 6 18:13 erl | |
-rwxr-xr-x 1 dayas staff 14K Apr 6 15:26 erlc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ dev1/erts-5.8.1/bin/escript dev1/erts-5.8.1/bin/nodetool -name dev1@127.0.0.1 -setcookie riak ping | |
Learning Erlang in "/Users/dayas/Learning/erlang/riak/dev" | |
/Users/dayas/Learning/erlang/riak/dev | |
Now in:"/Users/dayas/Learning/erlang/riak/dev" | |
pong | |
1.9.2 ip-192-168-1-126: [master] $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ cat ~/.erlang | |
io:format("Learning Erlang in ~p~n", [element(2,file:get_cwd())]). | |
%% Edit to the directory where you store your code | |
c:cd("/Users/dayas/ErlangProjects/learning"). | |
io:format("Now in:~p~n", [element(2,file:get_cwd())]).1.9.2 ip-192-168-1-126: [master] $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2 ip-192-168-1-126: [master] $ dev1/erts-5.8.1/bin/escript dev1/erts-5.8.1/bin/nodetool -name dev1@127.0.0.1 -setcookie riak ping | |
pong | |
1.9.2 ip-192-168-1-126: [master] $ dev1/bin/riak pingpong | |
1.9.2 ip-192-168-1-126: [master] $ dev2/bin/riak-admin status1-minute stats for 'dev2@127.0.0.1' | |
------------------------------------------- | |
vnode gets : 0 | |
vnode_puts : 0 | |
read_repairs : 0 | |
vnode_gets_total : 0 | |
vnode_puts_total : 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io:format("Learning Erlang in ~p~n", [element(2,file:get_cwd())]). | |
%% Edit to the directory where you store your code | |
c:cd("/Users/dayas/ErlangProjects/learning"). | |
io:format("Now in:~p~n", [element(2,file:get_cwd())]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cron "mongodb-backup" do | |
hour "0" | |
minute "05" | |
user "gc" | |
command "dt=$(date +%m_%d_%Y_at_%H_%M_%S) && mongodump -d grand_central_production -h localhost -o /tmp/mongo_backup_on_$dt && tar -cvzf $_.tar.gz $_ && rm -fr $_ && mv $_.tar.gz /mnt/postgres/mongo_backups/" | |
end |