I hereby claim:
- I am rgarcia on github.
- I am rg (https://keybase.io/rg) on keybase.
- I have a public key whose fingerprint is 7E16 D413 A697 F986 DC01 811F BC59 BC47 D298 7D85
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "github.com/facebookgo/mgotest" |
| package foo | |
| type Foo struct { | |
| } | |
| type DB interface { | |
| Find(string) (Foo, error) | |
| } |
| [inet_http_server] | |
| port=0.0.0.0:9001 | |
| [supervisord] | |
| logfile=out.log | |
| loglevel=info | |
| nodaemon=true | |
| [rpcinterface:supervisor] | |
| supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| ) | |
| // Job is used by gearman clients after a job is submitted | |
| type Job interface { |
| import ( | |
| "encoding/base64" | |
| "fmt" | |
| "net/http" | |
| ) | |
| type BasicAuthTransport struct { | |
| Username string | |
| Password string | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e | |
| # Clones a gist locally | |
| # usage: ./clone_gist.sh <gist id> <folder> | |
| git clone [email protected]:$1.git $2 |
$ node --expose-gc server.js
in another terminal:
$ curl localhost:5001
output in first terminal shows that req.foo is still sitting in the heap:
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "log" | |
| "os" | |
| "strings" | |
| "text/tabwriter" |