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 ( | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| http.Handle("/", http.HandlerFunc(auditHandler)) | |
| log.Fatal(http.ListenAndServe(":8080", nil)) |
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 | |
| GOPATH=$(dirname $0) | |
| GOBIN=$GOPATH"/bin" | |
| PATH=$GOBIN:$PATH | |
| tmux set-option -t ${SESSION} default-shell /bin/zsh | |
| tmux set-option -t ${SESSION} history-limit 5000 | |
| tmux set-environment -t ${SESSION} JUJU_MONGOD /usr/lib/juju/bin/mongod | |
| #tmux set-option -t ${SESSION} update-environment "GOPATH GOBIN PATH" | |
| tmux set-environment -t ${SESSION} GOBIN $GOBIN |
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/bash | |
| mongo 127.0.0.1:37017/admin --ssl --username "admin" --password "`sudo grep oldpassword ~/.juju/local/agents/machine-0/agent.conf | cut -d' ' -f2`" |
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 gc | |
| import ( | |
| "launchpad.net/gocheck" | |
| ) | |
| func Failure(c *gocheck.C) func() { | |
| return func() { | |
| // fails immediately | |
| c.Fail() |
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
| hadoop: | |
| series: precise | |
| services: | |
| hadoop-master: | |
| charm: hadoop | |
| branch: lp:charms/precise/hadoop | |
| constraints: cpu-cores=4 | |
| expose: true | |
| hadoop-slave: | |
| charm: hadoop |
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 gc | |
| import ( | |
| "launchpad.net/gocheck" | |
| ) | |
| func Failure(c *gocheck.C) func() { | |
| return func() { | |
| // fails immediately | |
| c.Fail() |