Skip to content

Instantly share code, notes, and snippets.

View glerchundi's full-sized avatar

Gorka Lerchundi Osa glerchundi

View GitHub Profile
package tenancy
import (
"context"
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"github.com/lib/pq"
@glerchundi
glerchundi / conn.go
Created July 31, 2018 14:24
tenancy
package tenancy
import (
"context"
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"github.com/lib/pq"
@glerchundi
glerchundi / conn.go
Created July 31, 2018 14:24
tenancy
package tenancy
import (
"context"
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"github.com/lib/pq"
message HelloReply {
message Decorated {
message DecoratedAgain {
string message = 1;
}
DecoratedAgain decorated_again = 1;
}
Decorated decorated = 1;
string plain = 2;
int32 my_num = 3;
$ make build && make build-crdb && make test-user-crdb && make test-db-crdb && make test-generate-crdb && make test-crdb
sed 's/"//g ; s/=/:=/ ; s/export //g' < testdata/env.sh > testdata/env.mk
go build github.com/volatiletech/sqlboiler
sed 's/"//g ; s/=/:=/ ; s/export //g' < testdata/env.sh > testdata/env.mk
go build github.com/volatiletech/sqlboiler/drivers/sqlboiler-crdb
sed 's/"//g ; s/=/:=/ ; s/export //g' < testdata/env.sh > testdata/env.mk
make: Nothing to be done for `test-user-crdb'.
sed 's/"//g ; s/=/:=/ ; s/export //g' < testdata/env.sh > testdata/env.mk
cockroach sql --insecure --user root --execute "drop database if exists sqlboiler_model_test;"
DROP DATABASE
@glerchundi
glerchundi / .config
Created October 30, 2017 15:08
issue with systemd and buildroot
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2017.08.1 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_5=y
BR2_HOST_GCC_AT_LEAST_4_6=y
BR2_HOST_GCC_AT_LEAST_4_7=y
BR2_HOST_GCC_AT_LEAST_4_8=y
BR2_HOST_GCC_AT_LEAST_4_9=y

confd.toml:

[global]
confdir = "/etc/confd"
interval = 200
noop = false
onetime = true
prefix = "/"
watch = false

Keybase proof

I hereby claim:

  • I am glerchundi on github.
  • I am glerchundi (https://keybase.io/glerchundi) on keybase.
  • I have a public key whose fingerprint is 8348 B16D C667 0279 1A14 D614 2196 808F F445 D67E

To claim this, I am signing this object:

@glerchundi
glerchundi / Vagrantfile
Last active August 29, 2015 14:00
Simple script to wrap vagrant into a blocking command (to use it inside with launchctl).
# -*- mode: ruby -*-
# # vi: set ft=ruby :
require 'fileutils'
require_relative 'override-plugin.rb'
CLOUD_CONFIG_PATH = "./user-data"
CONFIG= "config.rb"
# Defaults for config options defined in CONFIG