Skip to content

Instantly share code, notes, and snippets.

View bradylove's full-sized avatar

Brady Love bradylove

  • Pivotal
  • Highlands Ranch, CO
View GitHub Profile
@bradylove
bradylove / cloudSettings
Last active April 9, 2020 23:46
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-09T23:46:08.825Z","extensionVersion":"v3.4.3"}
04e7f36d7b41f6953b2a68a14fb8e113cae899ac944b0e60ee19037047b0f3d56220297197e3db6ef209b58921b1c0ef88a51a90e607ed35c0a2ba6df184cad167;bogdano
---
- op: add
path: /spec/containers/name=kube-controller-manager/command/1
value: "--flex-volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume"
- op: add
path: /spec/containers/name=kube-controller-manager/volumeMounts/1
value:
mountPath: /etc/kubernetes/kubelet-plugins/volume
name: flexvolume-mount
@bradylove
bradylove / main.go
Created January 29, 2018 02:20
Stellar Key Pair Generator
package main
import (
"flag"
"fmt"
"os"
"runtime"
"strings"
"sync"
"time"
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
deployments » kubicorn apply kobol
2017-12-07T08:28:54-07:00 [ℹ] Selected [fs] state store
2017-12-07T08:28:54-07:00 [ℹ] Loaded cluster: kobol
2017-12-07T08:28:54-07:00 [ℹ] Init Cluster
2017-12-07T08:28:54-07:00 [ℹ] Query existing resources
==================
WARNING: DATA RACE
Read at 0x00c42000c478 by main goroutine:
github.com/kris-nova/kubicorn/cutil/signals.(*Handler).Reset()
/home/brady/gocode/src/github.com/kris-nova/kubicorn/cutil/signals/signals.go:73 +0x58
deployments » kubicorn apply kobol
2017-12-07T08:22:01-07:00 [ℹ] Selected [fs] state store
2017-12-07T08:22:01-07:00 [ℹ] Loaded cluster: kobol
2017-12-07T08:22:01-07:00 [ℹ] Init Cluster
2017-12-07T08:22:01-07:00 [ℹ] Query existing resources
==================
WARNING: DATA RACE
Read at 0x00c420273198 by main goroutine:
github.com/kris-nova/kubicorn/cutil/signals.(*Handler).Reset()
/home/brady/gocode/src/github.com/kris-nova/kubicorn/cutil/signals/signals.go:73 +0x3c
    + Protocol Version
    |
    |  + Timestamp                   + org_name.space_name.app_name                                       + ProcessID (Source)
    |  |                             |                                                                    |
    v  v                             v                                                                    v
<14>1 2017-10-05T15:00:55.432180389Z cf-lamb.development.dripspinner 3e0b1150-14b8-4a20-a1c5-d9e296f198ae [APP/PROC/WEB] - - msg 1 LogSpinner Log Message
 ^                                                                   ^                                                       ^
 |                                                                   |                                                       |
 + Priority + AppID + Log Message
@bradylove
bradylove / tmux.conf
Created August 2, 2017 14:56
tmux 2.4 selection settings
# selection key bindings
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X select-line
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
# Linux copy to system clipboard
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
# OSX copy to system clipboard
# bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
package main
import (
"fmt"
"github.com/olivere/elastic"
"strconv"
"sync"
"time"
)