Skip to content

Instantly share code, notes, and snippets.

View brianshumate's full-sized avatar
💭

Brian Shumate brianshumate

💭
View GitHub Profile
@brianshumate
brianshumate / main.go
Created March 9, 2021 16:11
Artist Names
// Random names based on 20th century women artists
// Stole this function from Docker
package main
import (
"fmt"
"math/rand"
"time"
)
@brianshumate
brianshumate / default.yml
Created June 4, 2020 17:45
Splunk defaults
---
ansible_connection: local
ansible_environment: {}
ansible_post_tasks: null
ansible_pre_tasks: null
cert_prefix: https
config:
baked: default.yml
defaults_dir: /tmp/defaults
env:
@brianshumate
brianshumate / keybase.md
Created May 28, 2020 20:24
Keybase proof

Keybase proof

I hereby claim:

  • I am brianshumate on github.
  • I am brianshumate (https://keybase.io/brianshumate) on keybase.
  • I have a public key ASAY0lnqlPQR52N_bkuf1u169Jb37UhhUK9rJYTQjYB5AQo

To claim this, I am signing this object:

@brianshumate
brianshumate / microvault.sh
Created May 13, 2020 16:50
microVault - a tiny filesystem storage based Vault for quick use cases
#!/bin/sh
#
# microvault
# A tiny file storage based Vault server with TLS support running
# at 127.0.0.1:8200 that is fully ready to use when executed
#
# shellcheck disable=SC1090,SC2009
set -e
@brianshumate
brianshumate / token_colors
Created February 23, 2018 18:14
Token Colors
#!/bin/bash
if ! [ -z "$VAULT_TOKEN" ]; then
SRCTOKEN="$VAULT_TOKEN"
else
if [ -f "$HOME/.vault-token" ]; then
SRCTOKEN=$(cat "$HOME/.vault-token")
fi
fi
@brianshumate
brianshumate / consul-roll.go
Created April 24, 2017 20:35
Consul Roll — A Rick Roll service registrator for Consul
package main
import (
"log"
"os"
"strconv"
"time"
"github.com/hashicorp/consul/api"
)
@brianshumate
brianshumate / docker-macos-terraform.md
Last active April 16, 2024 02:18
The Simplest Terraform with Docker on macOS

If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@brianshumate
brianshumate / node.py
Created August 18, 2015 15:14
Nyanbalance
"""
Implementation for rebalance, add, remove, stop rebalance with extra Nyan Cat power!
NB: `pip install nyanbar` system-wide for this to work
"""
import time
import os
import sys
import util_cli as util
import socket
@brianshumate
brianshumate / example.j2
Created July 9, 2015 15:02
Jinja Tron 9001
{% set comma = joiner(",") %}
{% set lbracket = "[" %}
{% set rbracket = "]" %}
{% set quote = '"' %}
{
"advertise_addr": "{{ hostvars[inventory_hostname]['ansible_eth1']['ipv4']['address'] }}",
"bind_addr": "{{ hostvars[inventory_hostname]['ansible_eth1']['ipv4']['address'] }}",
"bootstrap": false,
"server": true,