Skip to content

Instantly share code, notes, and snippets.


Drew Miller xer0x

  • Vancouver
View GitHub Profile
xer0x /
Last active Feb 22, 2019
Watch a log file
from datetime import datetime, timedelta
from sys import argv, exit
import time
import signal
def usage():
print '''
python filename
xer0x /
Created Feb 22, 2017
Setup Cachet on Docker
#!/usr/bin/env bash
# Following the steps on
setup () {
git clone cachet-docker
cd cachet-docker
xer0x /
Created Apr 18, 2016
Notes from DevOpsDays

DevOpsDays Vancouver Notes

Intro on Friday

Demonware Capacity planning

  • Stories about lessons learned building matchmaking, leaderboards, and low latency large systems for Activision/Blizzard

Empathy Matt Smillie @notmatt

  • "Empathy is a fundamental engineering skill"
  • Can't find all the bugs

Keybase proof

I hereby claim:

  • I am xer0x on github.
  • I am xer0x ( on keybase.
  • I have a public key whose fingerprint is E0B8 C1EB 4F19 B91F A7CB 7DF4 D395 033D C773 4648

To claim this, I am signing this object:

View jpc-destroy-fraudster
# Copyright (c) 2011, 2012, Joyent Inc. All rights reserved.
# TODO http response from deleting a zone is not finding a "transition uri"
#set -o errexit
set -o pipefail
View .simplenoterc
let g:SimplenoteUsername = "your simplenote username"
let g:SimplenotePassword = "your simplenote password"
xer0x / prowl.cpp
Created Nov 27, 2012 — forked from garrettreid/prowl.cpp
Updated Prowl module for ZNC
View prowl.cpp
* Copyright (C) 2009 flakes @ EFNet
* New match logic by Gm4n @ freenode
* Version 1.0 (2012-08-19)
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
xer0x / index.html
Created Jun 29, 2012 — forked from enjalot/index.html
Simple Pie Chart example with D3.js
View index.html
<!DOCTYPE html>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Testing Pie Chart</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<style type="text/css">
xer0x / mongo_pubsub.rb
Created Jun 25, 2012 — forked from octplane/mongo_pubsub.rb
Simple Pub/Sub system using MongoDB, capped collections and tailable cursors in ruby
View mongo_pubsub.rb
require 'rubygems'
require 'mongo'
module MongoPubSub
class EndSubscriptionException < Exception; end
class Publisher
def initialize(queue_name, mongo_connection)
# Initialize queue collection as a capped collection
if not mongo_connection[QUEUES_COLLECTION].collection_names.include?(queue_name)
xer0x / gist:2632842
Created May 8, 2012
initial osx setup
View gist:2632842
# Pre-requisites : install XCode & Command-line tools
# Homebrew setup from:
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL"
# Check installation
brew doctor
# Do what the doctor says
sudo chown -R drew:wheel /usr/local/include /usr/local/lib