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
./scripts/rabbitmqctl -n rabbit-test list_bindings | |
Listing bindings ... | |
exchange amq.gen-vo8P7HfEXThPMNCo3PRtjQ== queue amq.gen-vo8P7HfEXThPMNCo3PRtjQ== [] | |
amq.direct exchange amq.gen-vo8P7HfEXThPMNCo3PRtjQ== queue [] | |
amq.fanout exchange amq.gen-vo8P7HfEXThPMNCo3PRtjQ== queue [] | |
...done. |
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
mrhyde:redis mrhyde$ sudo dtrace -s utils/dtrace/commands.d -p `pgrep redis` | |
dtrace: script 'utils/dtrace/commands.d' matched 2 probes | |
dtrace: pid 27958 has exited | |
ping 4508 | |
select 7518 | |
getbit 7923 | |
setbit 8030 | |
getrange 8227 | |
strlen 8401 |
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
erlang$target:::function-entry | |
/copyinstr(arg1) == "rabbit_exchange_type_direct:route/2"/ | |
{ | |
printf("%s %s", probemod, probefunc); | |
self->traceIt = 1; | |
} | |
erlang$target:::function-entry | |
/self->traceIt/ | |
{ |
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
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
%%! -sname nodefinder | |
%% Usage: | |
%% chmod +x nodes.erl | |
%% ./nodes.erl 'somenode@host' | |
main([N]) -> | |
Node = list_to_atom(N), |
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
f(N, N) -> do_something_when_equal; | |
f(X, N) -> do_something_when_diff. | |
f(1,10). %% calls the second one. | |
f(10, 10). %% calls the first one. |
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
mrhyde:basho mrhyde$ git clone git://github.com/basho/riak.git | |
Cloning into riak... | |
remote: Counting objects: 10941, done. | |
remote: Compressing objects: 100% (3362/3362), done. | |
remote: Total 10941 (delta 7292), reused 10887 (delta 7254) | |
Receiving objects: 100% (10941/10941), 8.94 MiB | 661 KiB/s, done. | |
Resolving deltas: 100% (7292/7292), done. | |
mrhyde:basho mrhyde$ cd riak/ | |
mrhyde:riak mrhyde$ 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
mrhyde:erlzmq2 mrhyde$ make | |
Cloning into deps/zeromq2... | |
remote: Counting objects: 8639, done. | |
remote: Compressing objects: 100% (2386/2386), done. | |
remote: Total 8639 (delta 6424), reused 8040 (delta 6039) | |
Receiving objects: 100% (8639/8639), 8.50 MiB | 661 KiB/s, done. | |
Resolving deltas: 100% (6424/6424), done. | |
v2.1.7 | |
Note: checking out 'v2.1.7'. |
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
mrhyde:c mrhyde$ tar -xzvf zeromq-2.1.7.tar.gz | |
x zeromq-2.1.7/ | |
x zeromq-2.1.7/autogen.sh | |
x zeromq-2.1.7/COPYING.LESSER | |
x zeromq-2.1.7/tests/ | |
x zeromq-2.1.7/tests/test_reqrep_inproc.cpp | |
x zeromq-2.1.7/tests/testutil.hpp | |
x zeromq-2.1.7/tests/test_reqrep_tcp.cpp | |
x zeromq-2.1.7/tests/test_pair_inproc.cpp | |
x zeromq-2.1.7/tests/Makefile.am |
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
#!/bin/bash | |
CAT="/bin/cat" | |
HOSTNAME=$(/bin/hostname) | |
RABBITMQ_HOME="/var/lib/rabbitmq" | |
RABBITMQ_COOKIE_PATH="$RABBITMQ_HOME/.erlang.cookie" | |
RABBITMQ_COOKIE=$($CAT $RABBITMQ_COOKIE_PATH) || exit 1 | |
ERLANG_ROOT="/usr/local/erlang" | |
ERL_CALL="$ERLANG_ROOT/lib/erlang/lib/erl_interface-3.6.5/bin/erl_call" | |
PROCS=$($ERL_CALL -c $RABBITMQ_COOKIE -sname rabbit@$HOSTNAME -a 'erlang system_info [process_count]') | |
echo "procs.$HOSTNAME $PROCS" |
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
#!/bin/sh | |
# Usage: | |
# Take 1 picture every second, during one hour | |
# ./slacking 3600 1 | |
# | |
N=0 | |
PICS_PATH="/path/to/pics/destination" |