View foo.go
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"log"
View softirq-watch.rb
#!/usr/bin/ruby
# CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 CPU8 CPU9 CPU10 CPU11 CPU12 CPU13 CPU14
# HI: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
# TIMER: 2344143 2305156 2295889 2278479 2274008 2260063 2237324 2245718 0 0 0 0 0 0 0
# NET_TX: 11309569 76523 76961 77020 77086 76261 78908 76016 0 0 0 0 0 0 0
# NET_RX: 11442620 47843 49607 48089 48989 45698 49201 41453 0 0 0 0 0 0 0
# BLOCK: 0 0 0 0 0 0 0 0
View chefdk.rb
cask 'chefdk' do
version '0.8.0-1'
sha256 '4d4d6d29324aeed5331d7e573a6d658bae78b7bbf3e3502b52702476a8b747b4'
# amazonaws is the official download host per the vendor homepage
url "https://opscode-omnibus-packages.s3.amazonaws.com/mac_os_x/10.8/x86_64/chefdk-#{version}.dmg"
name 'Chef Development Kit'
name 'ChefDK'
homepage 'https://downloads.getchef.com/chef-dk/'
license :apache
View gist:799748a4468276a0d6946a920e510c3c
Apr 22 15:38:33 endpointb914e408.chios.panth.io systemd[1]: Freezing execution.
Apr 22 15:38:33 endpointb914e408.chios.panth.io systemd[1]: Caught <ABRT>, dumped core as pid 11909.
Apr 22 15:38:33 endpointb914e408.chios.panth.io audispd[402]: node=endpointb914e408.chios.panth.io type=ANOM_ABEND msg=audit(1461339513.756:8018204): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=11909 comm="systemd" exe="/usr/lib/system
d/systemd" sig=6
Apr 22 15:38:33 endpointb914e408.chios.panth.io systemd[1]: Assertion 'hashmap_put(u->manager->cgroup_unit, s, u) == 1' failed at ../src/core/unit.c:2533, function unit_deserialize(). Aborting.
Apr 22 15:38:33 endpointb914e408.chios.panth.io systemd[1]: Reloading.
View remove-slice.sh
sed --follow-symlinks -i -e '/Slice=/d' /etc/systemd/system/mysql*service /etc/systemd/system/replica*service /etc/systemd/system/pt*service
View logstash.conf
## maybe just drop these altogether?
if "audit" in [tags] and [LONG_TERM_STORAGE] != "1" {
drop { }
}
## drop solr logs (this doesn't catch all solr logs but should get most)
if [unit] == "tomcat.service" {
if [message] =~ /org.apache.solr.core.SolrCore/ { drop { } }
if [message] =~ /webapp=[\/]+solr/ { drop { } }
}
View k8s-secrets.rb
#!/usr/bin/env ruby
#
# helper for making kubernetes secrets yaml files. Supports key/val strings and file contents
#
# Example:
# --------
#
# $ echo 'top secret stuff right here' >secret.txt
# $ ./k8s-secrets.rb secret-volume @secret.txt foo=bar biz=bop
#
View he-dns-update.sh
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
View keybase.md

Keybase proof

I hereby claim:

  • I am joemiller on github.
  • I am joemiller (https://keybase.io/joemiller) on keybase.
  • I have a public key ASB2rUAf7TBITz--9TUrhgfkvA_rfCn7IalrXwMvs5KtSwo

To claim this, I am signing this object:

View gist:ee3ccb60d87a02ac56af
macbook-joe git/coreos/coreos-xhyve ‹master› » docker-machine create -d xhyve xhyve-test
Running pre-create checks...
Creating machine...
(xhyve-test) Copying /Users/joe/.docker/machine/cache/boot2docker.iso to /Users/joe/.docker/machine/machines/xhyve-test/boot2docker.iso...
(xhyve-test) Creating VM...
(xhyve-test) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(xhyve-test) /dev/disk3 /Users/joe/.docker/machine/machines/xhyve-test/b2d-image
(xhyve-test) "disk3" unmounted.
(xhyve-test) "disk3" ejected.
(xhyve-test) Generating 20000MB disk image...