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 / gist:8c8cd01c986898c46145
Created May 2, 2015 11:35
Gophercon caddyfile for hugo + caddy
0.0.0.0:2015
git {
repo [email protected]:gophercon/gc15
key /home/bketelsen/.ssh/id_rsa
path ../
then /usr/local/bin/hugo --theme=gophercon --destination=/home/bketelsen/gc15/public
}
root gc15/public
#cloud-config
hostname: app01
coreos:
etcd:
addr: 10.0.130.10:4001
peer-addr: 10.0.130.10:7001
units:
- name: etcd.service
@bketelsen
bketelsen / fabric8.json
Created September 2, 2015 19:55
Run fabric8 in k8s cluster
{
"apiVersion" : "v1",
"items" : [ {
"apiVersion" : "v1",
"kind" : "Service",
"metadata" : {
"annotations" : { },
"labels" : {
"component" : "console",
"provider" : "fabric8"
---
ansible_ssh_user: bketelsen
ansible_ssh_pubkey: "{{ lookup('file','~/.ssh/id_rsa.pub') }}"
# This value determines how kubernetes binaries, config files, and service
# files are loaded onto the target machines. The following are the only
# valid options:
#
# localBuild - requires make release to have been run to build local binaries
# packageManager - will install packages from your distribution using yum/dnf/apt
[neobundle/install] Update started: (2015/12/08 23:24:53)
(1/1) [====================] vim-go
[neobundle/install] (1/1): |vim-go| Updated
[neobundle/install] |vim-go| -> 9aa3ef961d01106748b55aaf4b9ff2c6ab638272
Error detected while processing function <SNR>52_CSApprox..<SNR>52_CSApproxImpl..<SNR>52_FixupGuiInfo:
line 1:
E716: Key not present in Dictionary: 0
E15: Invalid expression: a:highlights[s:hlid_normal].gui.bg == ''
line 5:
E716: Key not present in Dictionary: 0
nnoremap <silent> <F2> :NERDTreeFind<CR>
noremap <F3> :NERDTreeToggle<CR>
map <F3> :NERDTreeToggle<CR>
map <F2> :NERDTreeFind<CR>
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("?")
})
@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"
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
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() {