Skip to content

Instantly share code, notes, and snippets.

View BenLubar's full-sized avatar

Ben Lubar BenLubar

View GitHub Profile
ben@loads hello_tap$ go run hello_tap.go http://127.0.0.1:18091 default
Connected to ver=0.0.0-cbgb
panic: runtime error: index out of range
goroutine 16 [running]:
github.com/dustin/gomemcached/client.makeTapEvent(0x44, 0x0, 0x0, 0xc200000c08, 0x8, ...)
/home/ben/go/src/github.com/dustin/gomemcached/client/tap_feed.go:77 +0x4e4
github.com/dustin/gomemcached/client.(*Client).runFeed(0xc2000dd930, 0xc2000bf900, 0xc2000ea580)
/home/ben/go/src/github.com/dustin/gomemcached/client/tap_feed.go:263 +0x2a3
created by github.com/dustin/gomemcached/client.(*Client).StartTapFeed
@BenLubar
BenLubar / cbmarkov.go
Last active December 17, 2015 20:29
couchbase markov chain generator
package main
import (
"bufio"
"crypto/sha1"
"encoding/hex"
"flag"
"log"
"os"
"time"
@BenLubar
BenLubar / gonuts-markov: sanity=1.txt
Created May 29, 2013 23:58
5000 fictional chat messages from #go-nuts
08:41 < socratesxd_> ok
11:27 < Stavros> for some value in question
11:11 < ni291187> go files :).
12:45 < davecheney> each development as many people keep https://github.com/jnwhiteh/golang is always write a channel
13:54 < hgf> yeah, conky
19:59 < bigbob> hello. newbie here, though?
19:41 < foofoobar> cespare, i'll find a masochist
17:10 < zeebo> thats why would you do you did Google bought at least write two anonymous struct definition
04:53 -!- mkb218 -- so at those cases compared to read the segmented stacks?
06:50 < kc5tja> Courtesy of course, but java.
panic: runtime error: index out of range
goroutine 78 [running]:
github.com/dustin/gomemcached/client.makeTapEvent(0x44, 0x0, 0x0, 0xc21024cbd8, 0x8, ...)
/home/ben/go/src/github.com/dustin/gomemcached/client/tap_feed.go:77 +0x4e4
github.com/dustin/gomemcached/client.(*Client).runFeed(0xc210062ea0, 0xc21005e900, 0xc2100e57c0)
/home/ben/go/src/github.com/dustin/gomemcached/client/tap_feed.go:263 +0x2a3
created by github.com/dustin/gomemcached/client.(*Client).StartTapFeed
/home/ben/go/src/github.com/dustin/gomemcached/client/tap_feed.go:229 +0x1fb
cbgb on 127.0.0.1:18091
8 vbuckets per bucket
(starting empty; persistence disabled)
ben@loads cbgb$ pillowfight -h 127.0.0.1:18091 -b default -T -I 65536
Creating instance 0
Populate
+---------+---------+---------+---------+
[180 - 189]us | - 1
[190 - 199]us | - 2
@BenLubar
BenLubar / gist:5774473
Created June 13, 2013 15:09
So I'm profiling something and...
runtime: unknown argument frame size for runtime.lessstack
fatal error: invalid stack
goroutine 0 [idle]:
runtime: unknown argument frame size for runtime.sigreturn
panic during panic
#!/bin/sh
for p in `curl http://go-search.org/api?action=packages | sed -e 's/","/\n/g' -e 's/"]/\n/' -e 's/\["//'`
do
GOPATH=~/gosearchpath go get -d -v "$p"
done
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2013-12-04T23:04:01.029Z",
[SLAB:0] "The secrets of life and death"
quartzite
1542
34 00 00 00 06 00
[BOOK:1] "The World Without the Hamlet"
plume agate
1507
@BenLubar
BenLubar / mountain.txt
Created February 1, 2014 20:31
unparsed entity data
0000000: 0004 0100 0000 0601 0000 0000 0100 0000 ................
0000010: 6700 0100 0000 2e00 0100 0000 0000 0000 g...............
0000020: 0300 0100 0000 1900 0100 0000 0000 0100 ................
0000030: 0000 01ff ffff ffff ffff ffff ffff ffff ................
0000040: ffff ffff ffff ffff 1000 0000 0000 0100 ................
0000050: 0000 1c00 0100 0000 0100 0100 0000 01ff ................
0000060: ffff 0000 0000 db00 ffff 0400 ffff ffff ................
0000070: ffff ffff 1000 0000 0000 0000 0000 0000 ................
0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................