Skip to content

Instantly share code, notes, and snippets.

View arbarlow's full-sized avatar

Alex Barlow arbarlow

  • UK
  • 11:41 (UTC +01:00)
View GitHub Profile
message GetRequest {
repeated string ids = 1;
}
message GetResponse {
repeated Order orders = 1;
}
service Orders {
rpc Get(GetRequest) returns (GetResponse);
package main
import (
"context"
"fmt"
"github.com/echo-health/accounts"
"github.com/lileio/pubsub"
"github.com/lileio/pubsub/kafka"
"github.com/sanity-io/litter"
@arbarlow
arbarlow / main.go
Created March 15, 2018 15:32
Real world cockroach benchmark
package main
import (
"context"
"os"
"strconv"
"sync"
"time"
otgorm "github.com/echo-health/opentracing-gorm"
@arbarlow
arbarlow / export.sh
Created February 12, 2018 22:08
How to export k8s deployments for import into another cluster
kubectl get deployment -o json | jq 'del(.items[].status) | del(.items[].metadata.annotations)' > dpls.json
@arbarlow
arbarlow / main.go
Created February 12, 2018 21:22
Remove istio
// Note: the example only works with the code within the same release/branch.
package main
import (
"flag"
"os"
"path/filepath"
"strings"
"go.uber.org/zap"
function! neoformat#formatters#python#autoflake() abort
return {
\ 'exe': 'autoflake',
\ 'args': ['--remove-all-unused-imports', '-i'],
\ 'replace': 1,
\ }
endfunction
### Keybase proof
I hereby claim:
* I am arbarlow on github.
* I am alexrbarlow (https://keybase.io/alexrbarlow) on keybase.
* I have a public key whose fingerprint is DB50 1968 EDB9 88D2 743C 0335 DA98 6A6E 0A65 4DFB
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am arbarlow on github.
  • I am alexrbarlow (https://keybase.io/alexrbarlow) on keybase.
  • I have a public key ASDp9m70x5POsDZmwevGOa6CYj70QlBl3lHtLo0kFjTK1Ao

To claim this, I am signing this object:

run:
goose -env=development up
go run main.go
resetdb:
dropdb riru-dev
createdb riru-dev
goose up
test:
@implementation InterfaceController
{
SRWebSocket *_webSocket;
}
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
}
- (IBAction)didOpen {