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
nnoremap <silent> <F2> :NERDTreeFind<CR>
noremap <F3> :NERDTreeToggle<CR>
map <F3> :NERDTreeToggle<CR>
map <F2> :NERDTreeFind<CR>
[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
---
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
@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"
#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 / 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
package git
import (
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"strings"
"sync"
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:8400 0.0.0.0:* LISTEN
tcp 0 0 172.31.100.17:8500 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8500 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:35896 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8600 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5051 0.0.0.0:* LISTEN
@bketelsen
bketelsen / gist:18802b301ad0e6cc072b
Created April 29, 2015 13:29
mesos master logs
I0429 13:29:19.036458 28426 authenticator.hpp:170] Creating new server SASL connection
I0429 13:29:19.186409 28426 master.cpp:3799] Queuing up authentication request from slave(1)@10.209.129.31:5051 because authentication is still in progress
W0429 13:29:19.186610 28426 master.cpp:3866] Failed to authenticate slave(1)@10.209.129.31:5051: Authentication discarded
I0429 13:29:19.186656 28426 master.cpp:3813] Authenticating slave(1)@10.209.129.31:5051
I0429 13:29:19.186672 28426 master.cpp:3824] Using default CRAM-MD5 authenticator
@bketelsen
bketelsen / gist:7d94ab5bd4fe46d4302e
Created April 28, 2015 15:07
docker containers for Gopher Sites
2f89c113c68c bketelsen/gophercon15:latest "/usr/sbin/nginx" 16 minutes ago Up 16 minutes 0.0.0.0:49156->80/tcp romantic_shockley
e8371c6519e7 bketelsen/gopheracademy:latest "/bin/sh -c 'revel r 10 days ago Up 18 minutes 80/tcp gopheracademy
88e055287a46 bketelsen/goinaction:latest "nginx" 12 days ago Up 18 minutes 80/tcp goinaction
e65d89d58c80 jwilder/nginx-proxy:latest "forego start -r" 12 days ago Up 18 minutes 443/tcp, 0.0.0.0:80->80/tcp nginx-proxy