Here is some information on the build machine I'm using for reference:
-
Dataset
$ dsadm list
UUID OS PUBLISHED URN
| ;; Datomic example code | |
| (use '[datomic.api :only (db q) :as d]) | |
| ;; ?answer binds a scalar | |
| (q '[:find ?answer :in ?answer] | |
| 42) | |
| ;; of course you can bind more than one of anything | |
| (q '[:find ?last ?first :in ?last ?first] | |
| "Doe" "John") |
./dev/dev1/bin/riak-admin transfers
'[email protected]' waiting to handoff 6 partitions
'[email protected]' waiting to handoff 4 partitions
'[email protected]' waiting to handoff 6 partitions
Active Transfers:
transfer type: ownership_handoff
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| (ns datomic-tutorial (:import [datomic Peer Util] | |
| [java.io FileReader])) | |
| ;;create database | |
| (Peer/createDatabase "datomic:mem://seattle") | |
| (Peer/createDatabase "datomic:mem://seattle") | |
| (let [conn (Peer/connect "datomic:mem://seattle")] | |
| ;; setup sample schema | |
| (.get (.transact conn |
| source :rubygems | |
| gem 'riak-client' |
| %% Claim dry-run / simulation code | |
| %% | |
| %% If running outside attached Riak shell, must have Riak libs in codepath and | |
| %% proper cookie / long-form node name. Eg: | |
| %% erl -pa RIAK/deps/*/ebin -setcookie riak -name [email protected] | |
| %% | |
| %% Run node/2 passing in cluster claimaint and number of new nodes to test: | |
| %% Add 1 node: claim_dryrun:node('[email protected]', 1) | |
| %% Add 2 nodes: claim_dryrun:node('[email protected]', 2) | |
| %% ... |
| #!/bin/sh | |
| # Shell script to install your public key on a remote machine | |
| # Takes the remote machine name as an argument. | |
| # Obviously, the remote machine must accept password authentication, | |
| # or one of the other keys in your ssh-agent, for this to work. | |
| # | |
| # http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/ | |
| # |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Copyright (c) Rich Hickey. All rights reserved. | |
| ; The use and distribution terms for this software are covered by the | |
| ; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
| ; which can be found in the file CPL.TXT at the root of this distribution. | |
| ; By using this software in any fashion, you are agreeing to be bound by | |
| ; the terms of this license. | |
| ; You must not remove this notice, or any other, from this software. | |
| ;As shown in the presentation: http://blip.tv/clojure/clojure-concurrency-819147 |
| # shove this in ~/.chef/bootstrap/joyent-smartos.erb | |
| # run knife bootstrap <hostname> -d joyent-smartos | |
| bash -c ' | |
| if [ ! -f /opt/local/bin/chef-client ]; then | |
| cd /tmp | |
| pkgin install gcc-compiler gcc-runtime gcc-tools-0 ruby19 scmgit-base scmgit-docs gmake sun-jdk6 | |
| wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz | |
| tar -xzf rubygems-1.8.10.tgz | |
| cd rubygems-1.8.10 |