Skip to content

Instantly share code, notes, and snippets.

View brianshumate's full-sized avatar
💭

Brian Shumate brianshumate

💭
View GitHub Profile
@brianshumate
brianshumate / gist:5670692
Last active December 17, 2015 20:49
Git Tips

Various and sundry tips for making git and GitHub usage more pleasant with optional rainbows and sunshine.

Gist

  • Use the gist command line utility for working with gists.

Hub

Keybase proof

I hereby claim:

  • I am brianshumate on github.
  • I am brianshumate (https://keybase.io/brianshumate) on keybase.
  • I have a public key whose fingerprint is A66D A488 BB63 C4F4 7BFC F136 EB97 A62A 698C 4CA6

To claim this, I am signing this object:

@brianshumate
brianshumate / hoodie-cheatsheet.md
Last active August 29, 2015 14:09
Hoodie Cheatsheet
@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,
@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

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 / 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.

@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 / 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 / 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