Skip to content

Instantly share code, notes, and snippets.

View gerred's full-sized avatar
:octocat:

Gerred Dillon gerred

:octocat:
View GitHub Profile
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
function healthcheck(req, res, next) {
if (req.path === "/healthz") {
res.end(200, "blahblah")
}
next()
}
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
module.exports = {
entry: './main.js',
output: {
path: './',
filename: 'index.js'
},
devServer: {
inline: true,
port: 3000
},
@gerred
gerred / .tmux.conf
Created January 20, 2016 18:02 — forked from snuggs/.tmux.conf
TMUX configuration file
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
#
# COPY AND PASTE
@gerred
gerred / helm.go
Created December 2, 2015 16:18
state removal
app.After = func(c *cli.Context) error {
select {
case <-log.ErrChan:
return errors.New("Exiting with errors")
default:
return nil
}
}
dme() {
eval "$(docker-machine env $@)"
}
etcd-lb:
image: rancher/load-balancer-service
labels:
io.rancher.scheduler.affinity:host_label: cluster=load-balancers
ports:
- 2379
links:
- etcd0
- etcd1
- etcd2
ambassador:
image: cpuguy83/docker-grand-ambassador
volumes:
- /var/run/docker.sock:/docker.sock
command:
- -name=vault_etcd0_1
- -wait=true
- -sock=/docker.sock
- -log-level=debug