Skip to content

Instantly share code, notes, and snippets.

@prettymuchbryce
prettymuchbryce / ubuntu-go1.5.sh
Created September 26, 2015 20:14
Just a simple script to bootstrap an ubuntu VM for Go
#bin/bash
sudo apt-get update
sudo apt-get -y install git vim binutils bison gcc make
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
gvm install go1.4 #bootstrap version

Keybase proof

I hereby claim:

  • I am prettymuchbryce on github.
  • I am prettymuchbryce (https://keybase.io/prettymuchbryce) on keybase.
  • I have a public key whose fingerprint is BF79 21A4 1364 77F0 0E48 3E19 5DE7 7775 95F5 B778

To claim this, I am signing this object:

@prettymuchbryce
prettymuchbryce / addrinuse.go
Created July 17, 2016 15:38
Close() on *net.UDPConn is not calling close syscall
package main
import "net"
const maxRecvSize = 0x2000
func main() {
for i := 0; i < 100000; i++ {
p, err := net.ListenPacket("udp", "127.0.0.1:3000")
if err != nil {