sudo su ubuntu
sudo -s
apt-get install -y git
git clone https://gist.github.com/94d82c2ac08dfcad488e.git riak_relocatable
cd riak_relocatable
chmod 755 build.sh
./build.sh
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Install these plugins | |
# vagrant plugin install vagrant-hostmanager | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
#Setup hostmanager config to update the host files | |
config.hostmanager.enabled = true |
This file contains hidden or 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
sudo yum install libprotobuf-dev protobuf-compiler | |
sudo yum install protobuf-devel | |
sudo yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git | |
sudo yum install pam-devel | |
curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
chmod a+x kerl | |
CFLAGS="-DOPENSSL_NO_EC=1" kerl build git git://github.com/basho/otp.git OTP_R16B02_basho8 R16B02-basho8 | |
CFLAGS="-DOPENSSL_NO_EC=1" kerl install R16B02-basho8 ~/erlang/R16B02-basho8 | |
. ~/erlang/R16B02-basho8/activate |
Download this gist, and then run:
chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh
Restart the system, and then run:
This file contains hidden or 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
{ | |
"riak": { | |
"framework-name": "riak", | |
"hostname": "riak.marathon.mesos", | |
"marathon": "m1.dcos:8080", | |
"master": "m1.dcos:5050", | |
"zk": "m1.dcos:2181", | |
"user": "root", | |
"role": "riak", | |
"auth-principal": "riak", |
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>>
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQChLWiHqtsxxrnrjL/kOksOzfQziQFw+dWyui+UcpKAz1tpKNP+pWAcowLamdu6pWq2XDT7RQZ+gulo94qs5VkV26DhkyUar2QKRbXIAH+lP0D/1IzOw/Al20l0lGScbuVrlAJUbjEzXIEKs/oDw8WA6af/U6b5AnHMMHzGibOxyozWgBhfBdRHjsuSzY28DZj/spnEMjd98stcG7fEa5r/lIy4QXswCNv6aWiFJtruTpm03TLTyK3tJsTMOw0ZqO9uYOrA1Fr3La68rA9SBP4bIMlgaxBrct7TEIFHHyD/NZynUmRE9NH3t9YncV4kC/Pt5/9wL5TZRZxAzgpUVt/MAkuv7CbKSOyR9nl0RwvtpOvfsJrX9O0dO8ILPvow2O96ziWPU0Z/VaGJGugiqPq2yzAEWVWm5ejgu0L/nJxtkbVhxYPvg6ncHrKkxaVYj/lxzxJHBmUdL9IFvyIxYrXeG6J1YT9Y1rdJjkq+8pl2gtdboRWYjARHRrLiEckwnwdQ+wCtVzoVoBA0+eEY3AhyxY44vvFJI0axdbOSYm0VWXKWxdOJ6FPBYivxLJGK0ozYPeOnPjS2+/6JoFiDPp59OvghcR3Bb2HsX5NgZM3TpmJPn3JwLXWyfmCZHFGTrDfWih1s2f9dF1wiYM4KLriJFMitj/FlrA2yGVVzP3Kbew== [email protected] |
This file contains hidden or 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
kerl build 19.1 19.1 && kerl install 19.1 ~/erlang/19.1 | |
kerl build 19.2 19.2 && kerl install 19.2 ~/erlang/19.2 | |
mkdir test | |
cat >test/test_SUITE.erl <<EOL | |
-module(test_SUITE). | |
-include_lib("common_test/include/ct.hrl"). | |
-compile([export_all]). | |
all() -> | |
[log_test]. |