Skip to content

Instantly share code, notes, and snippets.

View ajackson's full-sized avatar

Alexander Jackson ajackson

  • VMware
  • Boulder CO
View GitHub Profile
### 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:
@ajackson
ajackson / go13.rb
Created February 20, 2015 23:04
brew go13 formula
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
@ajackson
ajackson / go run syslog_reconnect.go output
Created February 12, 2015 00:35
reconnect test with syslog writer
$ 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
$ 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
import (
"os"
"os/signal"
"runtime/pprof"
"syscall"
)
func main() {
// launch something real in a goroutine