I hereby claim:
- I am dankerrigan on github.
- I am danthemyth (https://keybase.io/danthemyth) on keybase.
- I have a public key ASCsqvm8YoqmTFSAsPr0hkXqT1ZXv4ZIAIdbyhenfm9hJgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import argparse | |
| ENCODE = {'H': 0,'O': 1,'F': 2} | |
| DECODE = dict([(v, k) for k, v in ENCODE.items()]) | |
| def encode(data): | |
| result = 0 | |
| for i, d in enumerate(data): | |
| result += ENCODE.get(d, ENCODE['H']) | |
| if i != len(data)-1: |
| # Create an index | |
| curl -XPUT -i 'http://localhost:8098/search/index/user_index' | |
| # Create and activate a Riak bucket-type | |
| riak-admin bucket-type create data '{"props":{}}' | |
| riak-admin bucket-type activate data | |
| # Associate the index with the bucket, users | |
| curl -i -H 'content-type: application/json' -X PUT 'http://localhost:8098/types/data/buckets/users/props' -d '{"props":{"search_index":"user_index"}}' |
| --- a/kerl 2013-06-27 18:58:25.000000000 -0400 | |
| +++ b/kerl 2013-06-27 20:24:35.000000000 -0400 | |
| @@ -342,6 +342,10 @@ | |
| echo "Building Erlang/OTP $1 ($2), please wait..." | |
| ERL_TOP="$KERL_BUILD_DIR/$2/otp_src_$1" | |
| cd "$ERL_TOP" | |
| +## hack in a patch | |
| + curl -O https://gist.github.com/evanmcc/a599f4c6374338ed672e/raw/524050d20a3d1fe10f1aa43b0488f26615f6d396/rg-sfwi-R15B01.patch | |
| + patch -p1 < rg-sfwi-R15B01.patch | |
| +## end patch hack |
| import sys | |
| import hashlib | |
| import hmac | |
| import base64 | |
| import time | |
| import urllib2 | |
| content_type = 'application/json' | |
| def get_url_request(host, path, access_key, secret_key): |
| #!/bin/bash | |
| randomString32() { | |
| index=0 | |
| str="" | |
| for i in {a..z}; do arr[index]=$i; index=`expr ${index} + 1`; done | |
| for i in {0..9}; do arr[index]=$i; index=`expr ${index} + 1`; done | |
| for i in {1..63}; do str="$str${arr[$RANDOM%$index]}"; done | |
| echo $str | |
| } |
| Listening for transport dt_socket at address: 8000 | |
| 11:25:17.155 [main] INFO o.s.c.a.ClassPathBeanDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning | |
| 11:25:17.166 [damp-server-0] INFO c.basho.damp.server.bootstrap.Daemon - Starting DAMP server ... | |
| 11:25:17.298 [damp-server-0] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@29c82eaa: startup date [Thu Apr 11 11:25:17 EDT 2013]; root of context hierarchy | |
| 11:25:17.489 [damp-server-0] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring | |
| 11:25:17.522 [damp-server-0] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@b24acca: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annot |
| 20:04:41.279 [debug] Lager installed handler lager_console_backend into lager_event | |
| 20:04:41.290 [debug] Lager installed handler {lager_file_backend,"/home/riakadmin/basho_bench/tests/20130118_200440/error.log"} into lager_event | |
| 20:04:41.290 [debug] Lager installed handler {lager_file_backend,"/home/riakadmin/basho_bench/tests/20130118_200440/console.log"} into lager_event | |
| 20:04:41.294 [debug] Lager installed handler error_logger_lager_h into error_logger | |
| 20:04:41.294 [info] Application lager started on node nonode@nohost | |
| 20:04:41.299 [info] Est. data size: 39.06 MB | |
| 20:04:41.316 [debug] Supervisor sasl_safe_sup started alarm_handler:start_link() at pid <0.53.0> | |
| 20:04:41.317 [debug] Supervisor sasl_safe_sup started overload:start_link() at pid <0.54.0> | |
| 20:04:41.317 [debug] Supervisor sasl_sup started supervisor:start_link({local,sasl_safe_sup}, sasl, safe) at pid <0.52.0> | |
| 20:04:41.325 [debug] Supervisor sasl_sup started release_handler:start_link() at pid <0.55.0> |
| dankatbasho:azure dankerrigan$ ./reset_riak_nodes.sh | |
| 19:33:14.832 [debug] Lager installed handler lager_console_backend into lager_event | |
| 19:33:14.843 [debug] Lager installed handler {lager_file_backend,"/home/riakadmin/tests/20130116_193314/error.log"} into lager_event | |
| 19:33:14.844 [debug] Lager installed handler {lager_file_backend,"/home/riakadmin/tests/20130116_193314/console.log"} into lager_event | |
| 19:33:14.847 [debug] Lager installed handler error_logger_lager_h into error_logger | |
| 19:33:14.847 [info] Application lager started on node nonode@nohost | |
| 19:33:14.853 [info] Est. data size: 39.06 MB | |
| 19:33:14.867 [debug] Supervisor sasl_safe_sup started alarm_handler:start_link() at pid <0.53.0> | |
| 19:33:14.868 [debug] Supervisor sasl_safe_sup started overload:start_link() at pid <0.54.0> | |
| 19:33:14.868 [debug] Supervisor sasl_sup started supervisor:start_link({local,sasl_safe_sup}, sasl, safe) at pid <0.52.0> |