Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# This document describes updating the SmartOS boot_archive and /usr volumes. | |
# | |
# The boot_archive effectively contains /. If you want to make changes to SMF | |
# or so forth, you need to update the boot_archive. | |
# | |
# If you want to add things to /usr, such as drivers, you will need to update | |
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once | |
# you have updated usr.lgz you will need to copy it back to the mounted | |
# boot_arhive. | |
# |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
-module(timeit). | |
-compile(export_all). | |
%% @doc Dynamically add timing to MFA. There are various types of | |
%% timing. | |
%% | |
%% all - time latency of all calls to MFA | |
%% | |
%% {sample, N, Max} - sample every N calls and stop sampling after Max | |
%% |
LoadQueue = fun(N) -> | |
lists:foreach(fun(_) -> | |
self() ! foo | |
end, lists:seq(1, N)) | |
end. | |
RunTest = fun() -> | |
lists:foreach(fun(_) -> | |
Ref = termsend:ref(), | |
receive Ref -> ok end |
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
-include_lib("kernel/include/file.hrl"). | |
-compile(export_all). | |
-define(LOG(S), io:format(S)). | |
-define(LOG(S,A), io:format(S,A)). | |
main(Dirs) -> | |
CodePath = case os:getenv("RIAK_LIB") of |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: