Skip to content

Instantly share code, notes, and snippets.

View donaldguy's full-sized avatar
💊
recently relapsing on software as apparent side-effect of psychiatric medication

Donald Guy donaldguy

💊
recently relapsing on software as apparent side-effect of psychiatric medication
View GitHub Profile
@donaldguy
donaldguy / minikube logs
Created September 26, 2017 16:58
raw logs for kuberentes/minikube#2005
-- Logs begin at Tue 2017-09-26 16:56:52 UTC, end at Tue 2017-09-26 16:57:35 UTC. --
Sep 26 16:57:12 minikube systemd[1]: Starting Localkube...
Sep 26 16:57:12 minikube localkube[2936]: proto: duplicate proto type registered: google.protobuf.Any
Sep 26 16:57:12 minikube localkube[2936]: proto: duplicate proto type registered: google.protobuf.Duration
Sep 26 16:57:12 minikube localkube[2936]: proto: duplicate proto type registered: google.protobuf.Timestamp
Sep 26 16:57:12 minikube localkube[2936]: listening for peers on http://localhost:2380
Sep 26 16:57:12 minikube localkube[2936]: listening for client requests on localhost:2379
Sep 26 16:57:12 minikube localkube[2936]: name = default
Sep 26 16:57:12 minikube localkube[2936]: data dir = /var/lib/localkube/etcd
Sep 26 16:57:12 minikube localkube[2936]: member dir = /var/lib/localkube/etcd/member
@donaldguy
donaldguy / nginx.conf
Created May 8, 2017 21:10
kubectl -n kube-system exec -it nginx-ingress-controller-b56td cat /etc/nginx/nginx.conf (for kubernetes/ingress-nginx#693)
daemon off;
worker_processes 2;
pid /run/nginx.pid;
worker_rlimit_nofile 31744;
events {
multi_accept on;
worker_connections 16384;
use epoll;
@donaldguy
donaldguy / Rockerfile
Created August 15, 2016 18:30
jordan/rundeck + kindlyops oauth2 proxy with roles
#build us a binary for https://github.com/bitly/oauth2_proxy/pull/277
FROM golang
WORKDIR /go/src/github.com/bitly
RUN git clone https://github.com/kindlyops/oauth2_proxy.git
WORKDIR /go/src/github.com/bitly/oauth2_proxy
RUN git checkout github-teams-tweaks
RUN go get
# include patch from https://github.com/bitly/oauth2_proxy/pull/295
RUN curl https://github.com/donaldguy/oauth2_proxy/commit/8965e6b58a3afd8ad9f0f326f91b25253c88d523.patch | git apply --apply -
RUN go build
@donaldguy
donaldguy / Rockerfile
Last active February 26, 2016 23:33
Rockerfile for chef Policyfile cookbook ( https://github.com/grammarly/rocker )
{{ if .FromScratch }}
FROM ubuntu:trusty
{{ else }}
FROM your/cookbook:latest
{{ end }}
# use chefdk from host
MOUNT /opt/chefdk:/opt/chefdk
# use ssh environment from host
MOUNT {{ .Env.HOME }}/.ssh/known_hosts:/root/.ssh/known_hosts
@donaldguy
donaldguy / logentries_tokenizer
Last active August 29, 2015 14:14
Logentries token Rsyslog-forwarder with auto-created hosts/logs
#!/usr/bin/env ruby
#encoding utf-8
require 'logger'
require 'net/http'
require 'socket'
require 'json'
ACCOUNT_KEY=''
LOG_FILE = '/var/log/logentries_tokenizer.log'
UDP_HOST = '127.0.0.1'
@donaldguy
donaldguy / shell_output.txt
Created January 8, 2015 22:09
Output of ./script/cibuild for boxen/cardboard#13
[~/code/third/puppet-zookeeper]$ ./script/cibuild ✭ git:master ruby:system
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Installing CFPropertyList (2.2.8)
Installing addressable (2.3.6)
Installing rake (10.4.2)
Installing ansi (1.4.3)
Installing highline (1.6.21)
Installing json_pure (1.8.1)
Verifying that +donaldguy is my openname (Bitcoin username). https://onename.io/donaldguy

Keybase proof

I hereby claim:

  • I am donaldguy on github.
  • I am donaldguy (https://keybase.io/donaldguy) on keybase.
  • I have a public key whose fingerprint is 10EA BF8E 35E2 9F8D 69C6 DA36 6C99 1C70 C73A 15BC

To claim this, I am signing this object:

@donaldguy
donaldguy / calc.asm
Created March 22, 2014 22:59
The single calculation infix calculator I wrote as a capstone project for my high school "Computer Architecture" class in 2006
;; DONALD GUY'S AMAZING UNSIGNED 32-bit INTEGER CALCULATOR!!
;;
;; written, after much research and testing, on December 30-31, 2006
;; (if Y2K hits seven years late, we will still have this ^_^)
;;
;; Limitations: can't work with negative numbers (though it has subtraction)
;; only works with a MAX sum, product, minuend, or dividend
;; of 4,294,967,295
;;
;; Target Archetectuire: IA32 system running a POSIX operating system in