This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/exec" | |
| "path/filepath" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Run this under a supervisor to make the stream go from gerrit to a | |
| # couchdb. | |
| # | |
| # Set the following environment variables to make for useful: | |
| # | |
| # COUCH_SERVER - url to CouchDB ( e.g. http://localhost:5984/ ) | |
| # COUCH_DB - db to contain the stuff (e.g. gerrit) | |
| # GERRIT_HOST - hostname of review server (e.g. review.membase.org) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nodes: | |
| bruce up 98h27m43.642659968s (age: 3.639871788s) | |
| bsd2 up 99h2m1.141693362s (age: 1.128633809s) | |
| dbsd up 99h1m35.182252858s (age: 169.206832ms) | |
| dogbowl up 98h59m50.224614808s (age: 222.789735ms) | |
| mini64 up 99h0m16.659057991s (age: 1.655205815s) | |
| tasks: | |
| bruce | |
| reconcile - running - 2013-05-20 00:08:29.939011817 +0000 UTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/hex" | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "os/exec" | |
| ) | |
| func runner(ch chan bool, cmd string, args ...string) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is just a creepy text effect over a writer just to demonstrate | |
| // more io layering. | |
| package main | |
| import ( | |
| "io" | |
| "math/rand" | |
| "unicode" | |
| "unicode/utf8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| export GOPATH=$HOME/go | |
| export PATH=/bin:/usr/bin:/usr/local/bin:$HOME/go/bin:$HOME/prog/go/bin | |
| cd $HOME/go/src/github.com/couchbaselabs/cbugg | |
| git fetch origin | |
| if git diff --name-only origin/master | fgrep -q .go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "archive/zip" | |
| "flag" | |
| "log" | |
| "os" | |
| "text/template" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "archive/zip" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "code.google.com/p/dsallings-couch-go" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "testing" | |
| ) | |
| type bigStruct struct { | |
| a int | |
| ba1, ba2, ba3, ba4 [8192]byte | |
| } |