Skip to content

Instantly share code, notes, and snippets.

View briceburg's full-sized avatar

Brice Burgess briceburg

  • toil over toil
  • albuquerque, nm
View GitHub Profile
@briceburg
briceburg / main.go
Created January 13, 2021 03:18 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@briceburg
briceburg / Dockerfile
Created September 26, 2017 16:57 — forked from nknapp/Dockerfile
Traefik setup as reverse-proxy with docker and letsencrypt
FROM traefik:camembert
ADD traefik.toml .
EXPOSE 80
EXPOSE 8080
EXPOSE 443
@briceburg
briceburg / machine.py
Last active February 22, 2016 20:00 — forked from nathanleclaire/machine.py
Ansible dynamic inventory plugin for Docker Machine - tested working docker-machine v0.6.0
#!/usr/bin/env python
"""
Example Usage:
$ ansible -i machine.py machinename -m ping
"""
import argparse
import subprocess
@briceburg
briceburg / compose-hooks.sh
Created February 20, 2016 17:38 — forked from dnephin/compose-hooks.sh
Execute a hook in './hooks/<service>/<action>' when that event is received
#!/bin/bash
set -e
function handle_event() {
local entry="$1"
local action=$(echo $entry | jq -r '.action')
local service=$(echo $entry | jq -r '.service')
local hook="./hooks/$service/$action"
if [ -x "$hook" ]; then
"$hook" "$entry"
@briceburg
briceburg / lxc-centos
Created August 10, 2014 02:10 — forked from hagix9/lxc-centos
CentOS 6.5 LXC Template for Debian Wheezy / Ubuntu ( release 6.5-11.1 / final )
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
import XMonad
import XMonad.Actions.CycleWS -- cycle thru WS', toggle last WS
import XMonad.Hooks.DynamicLog -- statusbar
import XMonad.Hooks.ManageDocks -- dock/tray mgmt
import XMonad.Util.EZConfig -- append key/mouse bindings
import XMonad.Util.Run(spawnPipe) -- spawnPipe and hPutStrLn
import System.IO
import XMonad.Actions.SpawnOn
lowerVolume = "<XF86AudioLowerVolume>"