I hereby claim:
- I am tylerhannan on github.
- I am tylerhannan (https://keybase.io/tylerhannan) on keybase.
- I have a public key whose fingerprint is 61A2 9206 0497 EFFB 354B AE47 06F7 C49D B4EF 1D06
To claim this, I am signing this object:
IF | |
(EXISTS | |
(SELECT 1 FROM syscat.tables WHERE tabschema = 'dbo' and tabname = 'gooddecisions')) | |
THEN | |
DROP TABLE dbo.gooddecisions; | |
END IF; |
// Create a new bucket in Riak and enable `allow_mult` | |
$ curl -i http://localhost:8098/buckets/new_hotness/props \ | |
-X PUT -d '{"props":{"allow_mult":true}}' -H "Content-Type: application/json" | |
// POST to the `counters` resource. In this example we're adding "1" to the "riak-counters-blog-post-views" counter | |
$ curl -i http://localhost:8098/buckets/new_hotness/counters/riak-counters-blog-post-views \ | |
-X POST -d "1" |
user_object = ruby_client['users'].get_or_new('thevegan3000') | |
user_object.indexes['user_group_bin'] << 'administrator' | |
user_object.store | |
admin_user_keys = ruby_client['users'].get_index('user_group_bin', 'administrator') |
I hereby claim:
To claim this, I am signing this object:
riak-admin security add-user admin |
curl -XPUT https://127.0.0.1:10018/types/default/buckets/test_bucket/keys/message \ | |
-u admin:riakmaster | |
-H "Content-Type: text/plain" \ | |
-d "hello from inside fortress Riak" \ |
HTTP/1.1 200 OK | |
X-Riak-Vclock: a85hYGBgzGDKBVIcR4M2cgczH7HPYEpkzGNlWHSq7gxfFgA= | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.10.5 (jokes are better explained) | |
Link: </buckets/test_bucket>; rel="up" | |
Last-Modified: Sun, 23 Feb 2014 19:40:18 GMT | |
ETag: "7TUHUoxFAtXa9qy1AiMXIH" | |
Date: Sun, 23 Feb 2014 19:40:33 GMT | |
Content-Type: text/plain | |
Content-Length: 31 |
riak-admin security enable |
riak-admin security grant riak_kv.get,riak_kv.put on any to admin |
riak-admin security add-source admin 127.0.0.1/32 password |