Skip to content

Instantly share code, notes, and snippets.

$ debugnewvm --host=host-netbsd-8branch --run-build=netbsd-amd64-8branch
2017/10/09 16:09:20 Creating debug-temp-1507579760 (with VM image "netbsd-amd64-8branch")
2017/10/09 16:09:21 instance requested
2017/10/09 16:09:47 instance created
2017/10/09 16:09:47 got instance info
2017/10/09 16:09:47 About to hit http://10.240.0.92 to see if buildlet is up yet...
2017/10/09 16:09:47 SERIAL: SeaBIOS (version 1.8.2-20170419_170401-google)
Total RAM Size = 0x0000000073300000 = 1843 MiB
Failed to get pci whitelist data
CPUs found: 2 Max CPUs supported: 2
[deref-stack]d:\src\crashpad\crashpad>git cl upload -t "win: Capture memory pointed to by stack" --squash
Using 50% similarity for rename/copy detection. Override with --similarity.
Running presubmit upload checks ...
Presubmit checks passed.
handler/win/crashy_test_program.cc | 8 ++++
snapshot/snapshot.gyp | 4 +-
...text_memory.cc => capture_referenced_memory.cc} | 56 ++++++++++++++++++++--
...ontext_memory.h => capture_referenced_memory.h} | 20 ++++++--
snapshot/win/end_to_end_test.py | 12 +++++

Keybase proof

I hereby claim:

  • I am andybons on github.
  • I am andybons (https://keybase.io/andybons) on keybase.
  • I have the public key with fingerprint 1CBB 8297 E552 020D EEDA  6474 C175 AD0F 3D31 4FB2

To claim this, I am signing this object:

package main
import (
"code.google.com/p/go.net/websocket"
"log"
"net/http"
)
func main() {
log.Println("server started at localhost:8081")
#!/usr/bin/env bash
# Exit on error.
set -e
echo "Running go vet..."
go vet package/...
echo "Running tests..."
go test package/...
@andybons
andybons / lockservice.go
Created November 6, 2012 18:21
A lock service written in Go using Redis
package main
import (
"errors"
"github.com/garyburd/redigo/redis"
"log"
"math/rand"
"sync"
"time"
)
package metrics
import (
"github.com/stathat/go"
"time"
)
func Count(name string) {
stathat.PostEZCountOne(name, "YOUR_EZKEY")
}
@andybons
andybons / gist:3737860
Created September 17, 2012 14:59
Case-insensitive Levenshtein Distance Implementation
// runeAt returns the unicode rune at the specified index.
func runeAt(s string, index int) rune {
i := 0
for _, c := range s {
if i == index {
return c
}
i++
}
return -1