Skip to content

Instantly share code, notes, and snippets.

View geertweening's full-sized avatar

Geert Weening geertweening

  • Ripple
  • San Francisco, CA
View GitHub Profile
var sjcl = require('sjcl');
function decodeDomain(domain) {
if (!domain) {
return 'no domain specified';
}
var domain = sjcl.codec.utf8String.fromBits(sjcl.codec.hex.toBits(domain));
return domain;
}
@geertweening
geertweening / dockerdev.md
Last active December 22, 2015 18:10
Running Docker Dev
  1. git clone [email protected]:ripple/DockerDevEnv.git
  2. cd DockerDevEnv
  3. test/bats/bin/bats test/github.bats

OUTPUT

 ✓ git installed
 ✗ GH token conigured
   (in test file test/github.bats, line 10)
 `result=$(curl -s -u $(cat $CRED_DIR/.github_user_id):$(cat $CRED_DIR/.github_auth_token) https://api.github.com/users/$(cat $CRED_DIR/.github_user_id) | jq '.total_private_repos')' failed with status 127