I hereby claim:
- I am jasonmoo on github.
- I am jasonmoo (https://keybase.io/jasonmoo) on keybase.
- I have a public key whose fingerprint is 8F13 A4BE 24E8 666B 42EA AA72 4881 E1A0 4704 CD29
To claim this, I am signing this object:
| #!/bin/bash -x | |
| # 1. Set a blazingly fast keyboard repeat rate. | |
| defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
| defaults write NSGlobalDomain KeyRepeat -int 1 | |
| # 2. Disable opening and closing window animations. | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
| # 3. Disable the animations for opening Quick Look windows. |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| VERSION=${1:-release} | |
| GOROOT=${GOROOT:-/usr/local/go} | |
| if [ ! -d $GOROOT ]; then | |
| hg clone https://code.google.com/p/go $GOROOT | |
| fi |
| #!/bin/bash | |
| cd /usr/local/go && hg pull | |
| for version in go1.1 go1.2 go1.3 tip | |
| do | |
| hg up --clean $version | |
| pushd src | |
| GOOS=darwin GOARCH=386 ./make.bash | |
| GOOS=darwin GOARCH=amd64 ./make.bash |
| function complete_host() { grep "^Host $2" ~/.ssh/config | grep -v \* | cut -d\ -f2; } | |
| complete -o nospace -C complete_host ssh scp csshX |
| type ( | |
| GzipResponseWriter struct { | |
| io.Writer | |
| http.ResponseWriter | |
| } | |
| ) | |
| func (g GzipResponseWriter) Write(b []byte) (int, error) { | |
| return g.Writer.Write(b) | |
| } |
| // using goamz grab a region | |
| region := ec2.New(aws.Auth{ | |
| AccessKey: "XXXXXXX", | |
| SecretKey: "XXXXXXX", | |
| }, Instance_Region) | |
| // get a list of public dns names by the server’s class | |
| servers := pd.GetPublicDNS(region, Instance_ClassName) | |
| // build a pool of servers and specify the concurrency |
| users := make([]*User, 0) | |
| err := db.FindAll(&users, "WHERE `id` < 10") | |
| if err != nil { | |
| return err | |
| } | |
| for _, user := range users { | |
| fmt.Printf("%d: %s (%s)\n", user.Id, user.Name, user.Email) | |
| } |
| type User struct { | |
| _meta string `table:"user"` | |
| Id int `column:"id"` | |
| Name string `column:"name"` | |
| Email string `column:"email"` | |
| } |
| user := new(User) | |
| err = db.Find(user, "WHERE email = ?", email) | |
| if err != nil { | |
| return err | |
| } |