Skip to content

Instantly share code, notes, and snippets.

View peterbourgon's full-sized avatar

Peter Bourgon peterbourgon

View GitHub Profile
Of Mice and Men (John Steinbeck)
The Grapes of Wrath (John Steinbeck)
Catch-22 (Joseph Heller)
On the Road (Jack Kerouac)
The Sound and the Fury (William Faulkner)
@peterbourgon
peterbourgon / hack.sh
Created March 31, 2012 20:18 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
#
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
Date/Time: 2012-04-24 08:53:24 +0200
OS Version: 10.7.3 (Build 11D50b)
Architecture: x86_64
Report Version: 9
Command: Sublime Text 2
Path: /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
Version: Beta, Build 2181 (2181)
Parent: launchd [115]
@peterbourgon
peterbourgon / gist:2491233
Created April 25, 2012 16:48 — forked from spadgos/gist:1853227
Sublime settings
{
"caret_style": "phase",
"color_scheme": "Packages/User/Nonokai.tmTheme",
"default_new_file_syntax": "Packages/Javascript/Javascript.tmLanguage",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
$ sudo aptitude install nginx
The following NEW packages will be installed:
nginx
0 packages upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
Need to get 339 kB of archives. After unpacking 799 kB will be used.
Get:1 http://ftp.us.debian.org/debian/ squeeze/main nginx i386 0.7.67-3+squeeze2 [339 kB]
Fetched 339 kB in 0s (1006 kB/s)
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 33, in <module>
from ALChacks import *
package main
import (
"database/sql"
"flag"
"fmt"
_ "github.com/Go-SQL-Driver/MySQL"
)
var (
package main
import (
"database/sql"
"flag"
"fmt"
_ "github.com/ziutek/mymysql/godrv"
)
var (
package main
import (
"fmt"
"github.com/streadway/amqp"
"log"
)
func main() {
produce()
$ cat inline.go ; go build -gcflags=-S inline.go
package main
func do() {
type foo struct {
i int
}
s := foo{i: 123}
println(s.i)
}

Keybase proof

I hereby claim:

  • I am peterbourgon on github.
  • I am peterbourgon (https://keybase.io/peterbourgon) on keybase.
  • I have a public key whose fingerprint is AC3C 3FC8 972E AEEC 2CB3 6DF6 445F 0D71 64F8 8F2B

To claim this, I am signing this object: