Skip to content

Instantly share code, notes, and snippets.

Michael Lanyon lanyonm

View GitHub Profile
View onename.md
View keybase.md

Keybase proof

I hereby claim:

  • I am lanyonm on github.
  • I am lanyonm (https://keybase.io/lanyonm) on keybase.
  • I have a public key whose fingerprint is FD54 B310 13BB 5C2F 3BBC 7703 B76C 1A71 AACD 7709

To claim this, I am signing this object:

View apache-and-tomcat-logs.json
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
@lanyonm
lanyonm / logstash.conf
Created Nov 28, 2013
Logstash configuration file
View logstash.conf
input {
file {
type => "nginx-access"
path => ["/var/log/nginx/access.log"]
}
}
filter {
if [type] == "nginx-access" {
grok {
# https://github.com/logstash/logstash/tree/master/patterns/grok-patterns
@lanyonm
lanyonm / Cheffile
Last active Dec 25, 2015
A Vagrant config for Graphite & StatsD.
View Cheffile
site "https://supermarket.getchef.com/api/v1"
cookbook "apt"
cookbook "graphite", "0.4.8"
cookbook "vim"
cookbook "statsd",
:git => "https://github.com/hectcastro/chef-statsd",
:ref => "v1.1.3"
@lanyonm
lanyonm / wattcher.py
Created Oct 13, 2013
The python script used to collect XBee Kill-a-Watt data.
View wattcher.py
#!/usr/bin/env python
import serial, time, datetime, sys
from xbee import xbee
from socket import socket
import sensorhistory
LOGFILENAME = "powerdatalog.csv" # where we will store our flatfile data
DEFAULT_CARBON_SERVER = 'localhost'
DEFAULT_CARBON_PORT = 2003
You can’t perform that action at this time.