Skip to content

Instantly share code, notes, and snippets.

Avatar

Drew Miller xer0x

View GitHub Profile
@xer0x
xer0x / log_watcher.py
Last active Feb 22, 2019
Watch a log file
View log_watcher.py
from datetime import datetime, timedelta
from sys import argv, exit
import time
import signal
def usage():
print '''
python log.py filename
@xer0x
xer0x / cachet.sh
Created Feb 22, 2017
Setup Cachet on Docker
View cachet.sh
#!/usr/bin/env bash
# Following the steps on https://docs.cachethq.io/docs/get-started-with-docker
setup () {
git clone https://github.com/cachethq/Docker.git cachet-docker
cd cachet-docker
@xer0x
xer0x / devopsdays.yvr.md
Created Apr 18, 2016
Notes from DevOpsDays
View devopsdays.yvr.md

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
View keybase.md

Keybase proof

I hereby claim:

  • I am xer0x on github.
  • I am xer0x (https://keybase.io/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
#!/usr/bin/bash
#
# 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
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
xer0x / index.html
Created Jun 29, 2012 — forked from enjalot/index.html
Simple Pie Chart example with D3.js
View index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Testing Pie Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script>
<style type="text/css">
@xer0x
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
QUEUES_COLLECTION = 'queues'
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
xer0x / gist:2632842
Created May 8, 2012
initial osx setup
View gist:2632842
# Pre-requisites : install XCode & Command-line tools
# Homebrew setup from: https://github.com/mxcl/homebrew/wiki/installation
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
# Check installation
brew doctor
# Do what the doctor says
sudo chown -R drew:wheel /usr/local/include /usr/local/lib
You can’t perform that action at this time.