curl "https://raw.githubusercontent.com/basho/yokozuna/develop/priv/default_schema.xml" -O
vim default_schema.xml
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class S(BaseHTTPRequestHandler): | |
def do_GET(self): |
-module(example1). | |
-export([init/0, find_by_field/2, undefined_function/2]). | |
-author("kevin@hypotheticalabs.com"). | |
init() -> | |
code:ensure_loaded(function_missing), | |
process_flag(error_handler, function_missing), | |
ok. |
is_primary_for_doc(BKey) -> | |
{ok, CHBin} = riak_core_ring_manager:get_chash_bin(), | |
DocIdx = riak_core_util:chash_key(BKey), | |
Itr = chashbin:iterator(DocIdx, CHBin), | |
MyNode = node(), | |
case chashbin:itr_value(Itr) of | |
{Idx, Node} when Node == MyNode -> true; | |
{_Idx, _Node} -> false | |
end. |
%% Author: PCHAPIER | |
%% Created: 25 mai 2010 | |
-module(utility). | |
%% | |
%% Include files | |
%% | |
%% | |
%% Exported Functions |
Erlang only has a few primitives that you need to worry about. Here they are below with corresponding Elixir examples.
integer
: Erlang: 123
, Elixir: 123
float
: Erlang: 123.5
, Elixir: 123.5
atom
: Erlang: hello
, Elixir: :hello
binary
: Erlang: <<"hello">>
or <<10,20>>
, Elixir: "hello"
or <<10,20>>
Download this gist, and then run:
chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh
Restart the system, and then run: