Skip to content

Instantly share code, notes, and snippets.

View bketelsen's full-sized avatar
💭
Making tools to make the tools.

Brian Ketelsen bketelsen

💭
Making tools to make the tools.
View GitHub Profile
@bketelsen
bketelsen / search.go
Last active August 17, 2017 13:29
search
type Package struct {
Authors []Author
ImportPath string
SourceURL string
License string
Keywords []string
Description string
Versions []Version
}

Keybase proof

I hereby claim:

  • I am bketelsen on github.
  • I am bketelsen (https://keybase.io/bketelsen) on keybase.
  • I have a public key whose fingerprint is 7A8D B8F9 0631 2D4C AC70 9998 868F E979 3736 6F45

To claim this, I am signing this object:

@bketelsen
bketelsen / vegeta benchmarks.txt
Created December 20, 2016 22:01
go1.7.4 v 1.8beta2 real world app test
1.7.4
bketelsen@dune:[~] echo "GET http://dev.brianketelsen.com:3000/" | vegeta attack -duration=10s | tee results.bin | vegeta report
Requests [total, rate] 500, 50.10
Duration [total, attack, wait] 10.0324512s, 9.9799993s, 52.4519ms
Latencies [mean, 50, 95, 99, max] 48.393322ms, 46.8469ms, 56.0995ms, 61.5624ms, 90.1626ms
Bytes In [total, mean] 2918000, 5836.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:500
Error Set:
@bketelsen
bketelsen / pid output
Created September 25, 2016 16:57
log output of qpid
ng=0x771f4)}, FoodSensors:[]qpid.Sensor(nil)}
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.262317058 +0000 UTC: [INFO] Pi Grill Controller - Temp: 102, Integral: 53.741699
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.262417211 +0000 UTC: [INFO] Pi Grill Controller - Turning on Blower
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.263110108 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.263573896 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.264012165 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.26431674 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.264754592 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.265010313 +0000 UTC: [INFO] Pi Grill Controller - Leaving Blower On
2016/09/25 16:54:54 LOG: 2016-09-25 16:54:54.265387334
@bketelsen
bketelsen / use lemonade for remote clipboard sharing
Last active March 6, 2025 07:04
how to use lemonade to share a clipboard between remote computers
on local and remote machine:
go get github.com/pocke/lemonade (if you have Go installed, if not download lemonade binary from github)
make sure $GOPATH/bin is in your path on both machines
-- or move $GOPATH/bin/lemonade to a place already in your path like /usr/local/bin
on your local machine add a script like this:
cat ~/bin/remote
@bketelsen
bketelsen / smoked-fried-chicken.md
Last active June 10, 2017 01:11
Smoked Fried Chicken

Smoked Fried Chicken

It's the best of all worlds. Trust me

Ingredients

  • Chicken - cut for frying is best
  • Coarse salt. Sea salt or Kosher salt
  • Spices for brining - I use parsley, sage, thyme, a dash of cumin and cayenne powder. Experiment!
  • Panko crumbs
  • Eggs
  • French's fried onion strips
package design
import (
"github.com/goadesign/gorma"
. "github.com/goadesign/gorma/dsl"
)
var _ = StorageGroup("CongoStorageGroup", func() {
Description("This is the global storage group")
Store("postgres", gorma.Postgres, func() {
root@gopheracademy:/opt/caddy# cat Caddyfile
gophercon.com, www.gophercon.com {
root /opt/caddy/gc15/public
gzip
tls [email protected]
git {
repo https://github.com/gophercon/gc15
path ../
interval 60
then hugo --theme=gophercon --destination=public
@bketelsen
bketelsen / main.go
Created March 1, 2016 02:44 — forked from abourget/main.go
Under my package's `gen` folder
package main
import (
"fmt"
"os"
"strings"
"github.com/goadesign/goa/dslengine"
"github.com/goadesign/goa/goagen/codegen"
"github.com/goadesign/goa/goagen/gen_app"
kit.Endpoint(server.AddService, func(){ // first parameter is the Go interface representing the service
kit.GRPC("pb/add.proto")
kit.Thrift("thrift/add.thrift")
kit.NetRPC("?")
})