Skip to content

Instantly share code, notes, and snippets.

View elijah's full-sized avatar
🦊

Elijah Wright elijah

🦊
View GitHub Profile
anonymous
anonymous / gist:161265
Created August 4, 2009 14:09
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@tswicegood
tswicegood / sync_things.rb
Created October 1, 2009 20:13
Simple Ruby script to sync Basecamp and Things to-dos.
#!/usr/bin/env ruby
#
# Biggest problem with this is that it checks everything. Needs
# to be adjusted to only check N days and/or N tasks on Basecamp.
#
# Also has a problem in that Completed always wins. If you have a
# task marked at completed, then mark it as open again on just one
# side, it'll mark the other as completed if you run the sync again.
#
# All that said, it provides a basic, very rudimentary sync.
@kusor
kusor / .gitmodules
Created May 16, 2010 08:20
NodeJS AMQP Exchanges
[submodule "amqp"]
path = amqp
url = http://github.com/ry/node-amqp.git
anonymous
anonymous / awkperfsampleoutput
Created December 28, 2010 20:08
Page Count 95th Average
/site/home 385 4843 1646.72
/site/home/options.jsf 857 2485 1213.6
/site/home/pages.jsf 26 844 624.962
/site/home/logoff.jsf 10 125 109.4
anonymous
anonymous / awkperfcode
Created December 28, 2010 20:10
BEGIN {
lastUrl = "";
performanceHistory[1] = 0;
hitCount = 0;
total = 0;
print "Page\tCount\t95th\tAverage";
}
function EraseData()
{
@jdmaturen
jdmaturen / ExponentiallyDecayingSample.py
Created April 6, 2011 01:45
expontentially decaying sample algorithm w/ redis
import logging
from math import exp
from random import random
from time import sleep
from time import time
from uuid import uuid1
from redis.exceptions import WatchError
@jedi4ever
jedi4ever / gist:1001978
Created June 1, 2011 08:27
vsphere -ruby testing notes
To setup a test environment
- install vmware Fusion (trial)
- install A machine (windows 2003 / 64 Bit /trial available)
- install B machine (ESX) (trial download)
- install on A, vsphere server (trial download/requires Win2003/Win2008)
- install on A, vsphere client
- import ESX host B into vsphere via vsphere client
- create a user vmware (Local User)
- put it in Administrator group
@jtimberman
jtimberman / network_addr.rb
Created June 22, 2011 16:53
Ohai plugin to provide semantically nice attributes for network interfaces
#
# Author:: Joshua Timberman (<joshua@opscode.com>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@makuk66
makuk66 / rabbitmq-trace-logger.rb
Created August 3, 2011 13:31
simple consumer for rabbitmq firehose; see http://www.rabbitmq.com/firehose.html
#!/home/mqtester/.rvm/wrappers/ruby-1.9.2-p290@mqtester/ruby
# encoding: utf-8
require "rubygems"
require "amqp"
@exchange_name = "amq.rabbitmq.trace"
class Consumer
def handle_message(metadata, payload)
@jasonrudolph
jasonrudolph / about.md
Last active May 14, 2024 16:36
Programming Achievements: How to Level Up as a Developer