Skip to content

Instantly share code, notes, and snippets.

View hughes's full-sized avatar

Matt Hughes hughes

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hughes on github.
  • I am hughes (https://keybase.io/hughes) on keybase.
  • I have a public key whose fingerprint is 66EF 79CC CD2A 625C A2EA 52D4 2403 FBFA 40B5 2DBF

To claim this, I am signing this object:

127.0.0.1 localhost
127.0.1.1 thmdev
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 dev.tophatmonocle.com sentry.dev.tophatmonocle.com
a=eval;b=decodeURIComponent;c='%E0%B2%A0%E7%9B%8A%E0%B2%A0%E1%83%9A';d='%E1%83%9A'
e='var '+b(d)+'=alert;var '+b(c)+'="'+b(d)+'('+b(c)+')"';a(e);
ლ(ಠ益ಠლ)
Space
space
SPACE
sPace
kevin spacey
interspace
spaces
{
"access" : {
"properties" : {
"body_bytes_sent" : {
"type" : "integer"
},
"protocol" : {
"type" : "string"
},
"request_method" : {
// setup
SET offset TO ALT:RADAR.
SET alt_target TO 25.
SET max_throttle TO 0.5.
SAS ON.
LOG "MISSION START" TO output.
UNTIL 0 {
// setup
SET alt_radar TO ALT:RADAR - offset.
@hughes
hughes / regex
Created August 21, 2013 13:09
nginx log parser
^(?<remote_ip>[^ ]*) - - \[(?<datetime>[^\]]*)\] "(?<type>[^ ]*) (?<url>[^\ ]*) HTTP/1.1" (?<status>[0-9]*) (?<size>[0-9]*) "(?<referrer>[^"]*)" "(?<user_agent>[^"]*)"$
@hughes
hughes / td-agent.conf
Created August 20, 2013 21:22
td-agent.conf
<source>
type syslog
port 42185
tag syslog
</source>
<source>
type forward
</source>
@hughes
hughes / stats
Created August 20, 2013 20:49
stats server nginx conf
upstream stats_server {
server localhost:5601;
}
server {
listen 80;
server_name stats.dev.tophat.com;
@hughes
hughes / kibana
Created August 20, 2013 20:39
/etc/init.d/kibana
#!/bin/sh
#
# chkconfig: 2345 70 40
# description: kibana startup script
# author: Matt Reid
# websites: http://themattreid.com
# license: GPL v2
# date: 2012-12-06
# version: 0000.1
#