Skip to content

Instantly share code, notes, and snippets.

View coderoshi's full-sized avatar

Eric Redmond coderoshi

View GitHub Profile
@coderoshi
coderoshi / gist:3729593
Last active March 31, 2022 15:43
A Very Short Guide to Writing Guides

A Very Short Guide to Writing Guides

This is just a few thoughts on the topic of writing technical guides. This was intended for Basho's engineering team, but this may apply to open source projects in general.

Audience

It's commonly preached that the first step in writing is to identify your audience; to whom are you writing? This is the most well known, most repeated, and most overlooked step of writing in general and technical writing in particular. Take this document, for example. My audience is technical people who need to communicate technical information, and not teenagers, so I shy away from images of pop icons and memes. I use jargon and words like "identify" rather than "peep this".

Pronouns

@coderoshi
coderoshi / get_object.rb
Created December 6, 2012 19:21
Riak Ruby Client Usage
client['roflcopter']['key0']
@coderoshi
coderoshi / get_all.js
Created December 6, 2012 19:37
Riak Javascript Client Usage
db.getAll('90s-emo', {
where: { origin: "Madison, WI" }
});
## Set SC from off to on
find /riak/dev -name riak.conf | xargs sed -i -e "s/## strong_consistency = on/strong_consistency = on/"
## restart each node in order
for d in `ls /riak/dev`; do /riak/dev/$d/bin/riak restart; done
# encoding: UTF-8
require 'riak'
require 'rsolr'
require 'ap'
client = Riak::Client.new(nodes: [{pb_port:10017}])
people = client.bucket('people')
map = Riak::Crdt::Map.new(people, 'eric', 'maps')
map.registers['first'] = 'MY_NAME'
Verifying my Blockstack ID is secured with the address 1r2LNQFgRi9V8jT7aNFdyis4bZDBnmZ7k https://explorer.blockstack.org/address/1r2LNQFgRi9V8jT7aNFdyis4bZDBnmZ7k