This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require "time" | |
require "date" | |
# NOTE: Change these to match your setup! | |
ENV["EC2_PRIVATE_KEY"] = "/path/to/pk-...pem" | |
ENV["EC2_CERT"] = "/path/to/cert...pem" | |
ENV["JAVA_HOME"] = "/usr/lib/jvm/java-6-openjdk" | |
MOUNT = "/mnt/whatever" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jun 17 23:03:38 erik-cunninghams-macbook-pro configd[16]: network configuration changed. | |
Jun 17 23:04:13 erik-cunninghams-macbook-pro configd[16]: network configuration changed. | |
Jun 17 23:04:14 erik-cunninghams-macbook-pro ntpd[29]: bind() fd 25, family 30, port 123, scope 6, addr fe80::226:8ff:fedd:ba19, in6_is_addr_multicast=0 flags=0x11 fails: Can't assign requested address | |
Jun 17 23:04:14 erik-cunninghams-macbook-pro ntpd[29]: unable to create socket on en1 (19) for fe80::226:8ff:fedd:ba19#123 | |
Jun 17 23:04:16 erik-cunninghams-macbook-pro mDNSResponder[20]: DeregisterInterface: Frequent transitions for interface en1 (192.168.199.106) | |
Jun 17 23:04:17 erik-cunninghams-macbook-pro Adium[20771]: Attempting to correct for old proxy listobject, keyed IRC.kage-#qc.2 | |
Jun 17 23:04:17 erik-cunninghams-macbook-pro Adium[20771]: Attempting to correct for old proxy listobject, keyed IRC.mish-#qc.2 | |
Jun 17 23:04:17 erik-cunninghams-macbook-pro Adium[20771]: Attempting to correct for old proxy listobject, keyed IRC.heathe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def addchars(target) | |
str = "" | |
while target > 9 | |
c = rand(9) | |
str << c.to_s | |
target -= c | |
end | |
str << target.to_s | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following lines were added by compinstall | |
autoload -Uz vcs_info | |
typeset -U fpath path | |
fpath=($fpath $HOME/.zsh/func) | |
zstyle ':completion:*' completer _expand _complete | |
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} | |
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s | |
zstyle :compinstall filename '~/.zshrc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pdhexpand.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <string> | |
#include <sstream> | |
#include <iostream> | |
#include <vector> | |
#include <pdh.h> | |
#include <pdhmsg.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
#gem install eventmachine | |
#gem install amqp --pre | |
require 'rubygems' | |
require 'amqp' | |
require 'eventmachine' | |
max = ARGV[1] || 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <pdh.h> | |
#include <pdhmsg.h> | |
#include <vector> | |
#include <iostream> | |
#pragma comment(lib, "pdh.lib") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
# | |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara-webkit' | |
class CapybaraWalker | |
include Capybara |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
# | |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara-webkit' | |
require 'nokogiri' | |
require 'uri' | |
require 'net/https' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
# | |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara-webkit' | |
require 'nokogiri' | |
require 'uri' |
OlderNewer