Skip to content

Instantly share code, notes, and snippets.

View deverton's full-sized avatar

Dan Everton deverton

View GitHub Profile
@simpsoka
simpsoka / Leadership-CI.md
Last active December 20, 2023 15:40
This is a list of questions to check our decision making.

Do I want to die on this hill?

  • Pass: This is morally good and if not handled has long term consequences
  • Fail: This if self serving

Am I including everyone?

  • Pass: My ego is not driving this conversation
  • Fail: The people in this conversation will only tell me I'm right and not push back
@pamolloy
pamolloy / README.md
Last active January 23, 2024 07:28
Ubiquiti USG configuration for Wireguard

Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.

cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
@deverton
deverton / gargoyle-host-override.md
Last active January 5, 2018 01:13
Host Overrides in Gargoyle/OpenWRT
  1. SSH to router
  2. uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/override.hosts
  3. echo 'fqdn.example.com 127.0.0.1' >> /etc/override.hosts
  4. /etc/init.d/dnsmasq restart

Should result in

  $ nslookup fqdn.example.com
 Server: 127.0.0.1
@lonefreak
lonefreak / graphite-0.9.10-centos-6.2.sh
Created November 7, 2012 19:05
Install Graphite 0.9.10 on CentOS 6.2
#! /bin/sh
# GRAPHITE 0.9.10
# FOR CENTOS 6
# Andrew Diller Jan 2012
# Modified by Fabricio Leotti Nov 2012
# THIS SCRIPT DEPENDS ON PYTHON 2.6 (NO MORE, NO LESS)
# Get EPEL Repo installed
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
@deverton
deverton / logstash-template.json
Created June 22, 2012 04:49
Logstash Elasticsearch Template
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"query" : { "default_field" : "@message" },
"store" : { "compress" : { "stored" : true, "tv": true } }
}
},