Skip to content

Instantly share code, notes, and snippets.

View btc's full-sized avatar
🍃

brian tiger chow btc

🍃
View GitHub Profile
@btc
btc / main.go
Created February 14, 2015 23:31
package main
import (
"flag"
"log"
"net/http"
"github.com/briantigerchow/gamecenter"
)
@btc
btc / config
Created February 6, 2015 20:18
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[branch "master"]
rebase = true
remote = origin
[core]
excludesfile = /Users/btc/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /opt/homebrew-cask/Caskroom/sourcetree/1.9.8/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
name = Brian Tiger Chow
# This Makefile provides a way to really simple way to run benchmarks in a
# docker environment.
IPFS_ROOT = ../..
IMAGE = jbenet/go-ipfs-bench
CONTAINER = go-ipfs-bench
PACKAGE = epictest
PACKAGE_DIR = test/epictest
BUILD_DIR = ./build/bench
CONTAINER_WORKING_DIR = /go
package gamecenter
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
)
@btc
btc / file
Created January 28, 2015 16:20
162.243.251.152 | success | rc=0 >>
API server listening on /ip4/0.0.0.0/tcp/808015:55:17.101 INFO  updates: go-ipfs Version: 0.1.7 updates.go:96
2015/01/28 15:55:18 BucketAlreadyOwnedByYou
15:55:19.236 DEBUG  core: Config.Addresses.Swarm:[/ip4/0.0.0.0/tcp/4001] <autogenerated>:23
15:55:19.237 DEBUG  core: Config.Addresses.Swarm:[/ip4/0.0.0.0/tcp/4001] (filtered) <autogenerated>:23
15:55:19.237 INFO  swarm2: Swarm Listening at /ip4/0.0.0.0/tcp/4001 <autogenerated>:29
15:55:19.237 DEBUG  conn: Conn Listener on /ip4/0.0.0.0/tcp/4001 <autogenerated>:23
15:55:19.237 INFO  swarm2: Swarm Listeners at [/ip4/0.0.0.0/tcp/4001] <autogenerated>:29
15:55:19.238 DEBUG  net/mux: <Muxer 0xc208303350 0> setting handler for protocol: /ipfs/identify (14) <autogenerated>:23

@btc
btc / main.go
Created January 28, 2015 14:13
package main
import (
"flag"
"log"
"os"
"os/signal"
"path/filepath"
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
all:
#no-op
bootstrap: ansible
jenkins:
. venv/bin/activate && ./ansible/bin/ansible-playbook ci.yml --extra-vars "jenkins_slave_username=slave jenkins_slave_password=$(JENKINS_SLAVE_PASS)"
logs: activate ./ansible/bin/ansible
. venv/bin/activate && ./ansible/bin/ansible solarnet -m fetch -a "src=/ipfs/ipfs_master/repo/logs/events.log dest=."
@btc
btc / -
Created January 24, 2015 23:36
ipfs
ipfs add
ipfs block
ipfs block get
ipfs block put
ipfs block stat
ipfs bootstrap
ipfs bootstrap add
ipfs bootstrap list
ipfs bootstrap rm
@btc
btc / -
Created January 24, 2015 08:14
00:10:16.581 ERROR dht: dht(<peer.ID QmauGG>) Provide(QmfVEpP5x4LKWJBhvtNB8GnKCAohyUxUpVCB3h3rawwFeo) <peer.ID QmauGG> failed to dial <peer.ID QmPpG8>, backing off. prefixlog
.go:110
00:10:16.583 ERROR dht: dht(<peer.ID QmauGG>) Provide(QmfVEpP5x4LKWJBhvtNB8GnKCAohyUxUpVCB3h3rawwFeo) <peer.ID QmauGG> failed to dial <peer.ID QmUJi5>, backing off. prefixlog
.go:110
2015/01/24 00:10:17 refreshing assets at %s .
00:10:17.519 ERROR dht: dht(<peer.ID QmauGG>) Provide(QmTDNgLR3UGi8KbDppDscCqmd12PtoZtrrqge6x5Gi6md6) <peer.ID QmauGG> failed to dial <peer.ID QmaCpD>, backing off. prefixlog
.go:110
00:10:17.519 ERROR dht: dht(<peer.ID QmauGG>) Provide(QmTDNgLR3UGi8KbDppDscCqmd12PtoZtrrqge6x5Gi6md6) <peer.ID QmauGG> failed to dial <peer.ID QmaCpD>, backing off. prefixlog
.go:110
00:10:17.519 ERROR dht: dht(<peer.ID QmauGG>) Provide(QmTDNgLR3UGi8KbDppDscCqmd12PtoZtrrqge6x5Gi6md6) <peer.ID QmauGG> failed to dial <peer.ID QmaCpD>, backing off. prefixlog