Skip to content

Instantly share code, notes, and snippets.

View hughes's full-sized avatar

Matt Hughes hughes

View GitHub Profile
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 / pre-commit
Last active December 21, 2015 11:25
#!/bin/bash
if [ -n $VIRTUAL_ENV ]; then
PATH=$VIRTUAL_ENV/bin:$PATH
fi
REPO=$(pwd)
EXIT_CODE=0
for FILE in `git diff-index --name-only --cached HEAD -- | egrep .js$`; do
@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
#