This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
== 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. |
#!/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. |
[submodule "amqp"] | |
path = amqp | |
url = http://github.com/ry/node-amqp.git |
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 |
BEGIN { | |
lastUrl = ""; | |
performanceHistory[1] = 0; | |
hitCount = 0; | |
total = 0; | |
print "Page\tCount\t95th\tAverage"; | |
} | |
function EraseData() | |
{ |
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 |
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 |
# | |
# 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 |
#!/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) |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer