Skip to content

Instantly share code, notes, and snippets.

View nbrownus's full-sized avatar
💥

Nate Brown nbrownus

💥
  • Defined Networking, Inc
  • Earth
View GitHub Profile
@nbrownus
nbrownus / consul-deb.sh
Last active October 31, 2018 20:48
consul deb maker
#!/bin/sh
VERSION="1.3.0"
BUILD="slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
#!/usr/bin/env node
var net = require('net'),
chunk = '',
regex = /{"name":"(.+?)".*"size":([0-9]*),"enqueued":([0-9]*),"full":([0-9]*),"discarded\.full":([0-9]*),"discarded\.nf":([0-9]*),"maxqsize":([0-9]*)}/,
names = {
'main Q': 'main_queue',
'main Q[DA]': 'main_queue_disk_assist',
'relp_forward queue': 'relp_forward',
'relp_forward queue[DA]': 'relp_forward_disk_assist',
@nbrownus
nbrownus / pig-deb.sh
Created March 2, 2015 20:31
Creates a deb for pig
#!/bin/sh
VERSION="0.12.1"
BUILD="betable1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
@nbrownus
nbrownus / hadoop-deb.sh
Created March 2, 2015 18:38
Hadoop deb builder
#!/bin/sh
VERSION="2.4.1"
BUILD="betable2"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
@nbrownus
nbrownus / bbcp-deb.sh
Created February 21, 2015 00:09
Builds a deb of bbcp
#!/bin/sh
VERSION="1.0.0"
BUILD="betable1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
@nbrownus
nbrownus / gist:7a8fa65e644d4c371b3b
Created November 18, 2014 18:16
rsyslog - collectd config
<Plugin "tail">
<File "/var/log/rsyslog_stats.log">
Instance "rsyslog"
#########################################################
# MAIN QUEUE SECTION ####################################
#########################################################
<Match>
DSType "GaugeLast"
@nbrownus
nbrownus / haproxy-deb.sh
Created November 4, 2014 23:29
Builds a super basic haproxy deb, no extra crap
#!/bin/sh
VERSION="1.5.8"
BUILD="betable1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
#!/bin/sh
VERSION="7u67"
BUILD="betable1"
set -e -x
# Keep track of the original working directory.
OLDESTPWD="$PWD"
@nbrownus
nbrownus / grafana-deb.sh
Last active August 29, 2015 13:57
Creates a deb for grafana
# Run this in a path you don't care about, things may get deleted!
VERSION="1.8.1"
BUILD="betable2"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
@nbrownus
nbrownus / whisper-deb.sh
Last active November 10, 2015 22:33
Creates a deb for whisper
VERSION="0.9.14"
BUILD="slack2"
set -e -x
ORIGPWD="$(pwd)"
TMP="$(mktemp -d)"
cd $TMP
trap "rm -rf \"$TMP\"" EXIT INT QUIT TERM
git clone https://github.com/graphite-project/whisper.git