This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ajackson on github. | |
* I am ajackson (https://keybase.io/ajackson) on keybase. | |
* I have a public key ASCw7WmonvSwR3kttBo6r__pLkuPB1GhReDABnB_CIYqQgo | |
To claim this, I am signing this object: |
This file contains 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
require 'formula' | |
class Go13 < Formula | |
homepage 'http://golang.org' | |
head 'https://go.googlecode.com/hg/' | |
url 'https://storage.googleapis.com/golang/go1.3.3.src.tar.gz' | |
version '1.3.3' | |
sha1 'b54b7deb7b7afe9f5d9a3f5dd830c7dede35393a' | |
bottle do |
This file contains 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
$ go run syslog_reconnect.go | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused | |
Failed to connect dial tcp 127.0.0.1:12345: connection refused |
This file contains 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
$ go run src/github.com/ajackson/misc/tcp_writer.go | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Failed to dial dial tcp 127.0.0.1:12345: connection refused | |
Wrote data successfully | |
Wrote data successfully |
This file contains 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
import ( | |
"os" | |
"os/signal" | |
"runtime/pprof" | |
"syscall" | |
) | |
func main() { | |
// launch something real in a goroutine |