Skip to content

Instantly share code, notes, and snippets.

View sgonyea's full-sized avatar

Scott Gonyea sgonyea

  • Google
  • Mountain View, CA
View GitHub Profile
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
Here are the trace commands
If you enter this on the erlang console
dbg:tracer().
dbg:p(all,[c,sos,sol]).
dbg:tpl(riak_kv_pb_socket, init, [{'_',[],[{message,{return_trace}}]}]).
dbg:tpl(riak_kv_pb_socket, process_message, [{'_',[],[{message,{return_trace}}]}]).
dbg:tpl(riak_kv_pb_socket, send_msg, [{'_',[],[{message,{return_trace}}]}]).