The following packages need to be installed before compiling erlang:
- gcc4core
- gcc4g++
- gmake
- unixodbc, unixodbc_dev
- libssl_dev
| -module(pbstream). | |
| -export([load/1, keys/0, bucket/0, map/3, pb_link/0, pb_link/2]). | |
| -define(QUERY, [{map, {modfun, riak_kv_mapreduce, map_object_value}, <<"filter_notfound">>, true}]). | |
| load(HowMany) -> | |
| lists:foreach(fun(Index) -> | |
| BIndex = list_to_binary(integer_to_list(Index)), | |
| RObj = riakc_obj:new(<<"examples">>, <<"key",BIndex/binary>>, <<"Value ",BIndex/binary>>), |
| 1. It may be required to install Riak on OSX from source. This may be the case, when Riak is reporting | |
| an error reading "app.config" when trying to start the Riak server after installation. | |
| 2. A successfully started Riak server can be tested by visiting the URL http://127.0.0.1:8098/ping, the | |
| port may differ, it can be looked up in the "app.config" file. | |
| 3. To connect to Riak from Erlang it's recommended to use the Riak protobuf client which can be | |
| found at: https://github.com/basho/riak-erlang-client | |
| 4. When installing the protobuf client the client and all libraries below the "deps/" directory of the |
| {type,collation,sequence, | |
| [{el,[{alt,suppress_contractions,'collation/SEQ1',[],1,1,false, | |
| undefined}, | |
| {alt,special,'collation/SEQ1',[],1,1,false,undefined}, | |
| {alt,settings,'collation/SEQ1',[],1,1,false,undefined}, | |
| {alt,rules,'collation/SEQ1',[],1,1,false,undefined}, | |
| {alt,optimize,'collation/SEQ1',[],1,1,false,undefined}, | |
| {alt,base,'collation/SEQ1',[],1,1,false,undefined}, | |
| {alt,alias,alias,[],1,1,true,undefined}], | |
| 1,1,7}], |
| import logging | |
| import riak | |
| log = logging.getLogger(__name__) | |
| class RiakCounter(object): | |
| def __init__(self, bucket, key): | |
| self.bucket = bucket | |
| self.bucket.set_allow_multiples(True) | |
| self.key = key |
| perl -i.bak -p -e \ | |
| "s/SHLIB_LIBS=.*/SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic'/g" \ | |
| support/shobj-conf | |
| ./configure | |
| make | |
| sudo make install |
stpncpy.c:34: error: expected declaration specifiers or ‘...’ before numeric constant
stpncpy.c:34: error: expected ‘)’ before ‘!=’ token
stpncpy.c:34: error: expected ‘)’ before ‘?’ token
make[4]: *** [stpncpy.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
| johannes.plunien@localhost /tmp$ git clone https://github.com/aurora/Memcached-Munin-Plugin.git | |
| Cloning into Memcached-Munin-Plugin... | |
| remote: Counting objects: 20, done. | |
| remote: Compressing objects: 100% (17/17), done. | |
| remote: Total 20 (delta 9), reused 7 (delta 3) | |
| Unpacking objects: 100% (20/20), done. | |
| johannes.plunien@localhost /tmp$ cd Memcached-Munin-Plugin/ | |
| johannes.plunien@localhost /tmp/Memcached-Munin-Plugin[master]$ git co -b mattdeboard-master | |
| Switched to a new branch 'mattdeboard-master' | |
| johannes.plunien@localhost /tmp/Memcached-Munin-Plugin[mattdeboard-master]$ git pull https://github.com/mattdeboard/Memcached-Munin-Plugin.git |
| #!/bin/bash | |
| =head1 NAME | |
| sphinx - Plugin to monitor various sphinx (searchd) stats | |
| =head1 CONFIGURATION | |
| No configuration |
| <?php | |
| class a { | |
| protected $msg = 'hallo'; | |
| function write() { print $this->msg; } | |
| } | |
| class b extends a { | |
| protected $msg = 'world'; | |
| function write() { parent::write(); } |