This file contains hidden or 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/sh | |
CHECKSUM=$1 | |
FILE=$2 | |
if [[ -z "$CHECKSUM" ]]; then | |
echo "Usage: $0 md5 file" | |
exit 1 | |
elif [[ -z "$FILE" ]]; then | |
echo "Usage: $0 md5 file" |
This file contains hidden or 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
# | |
# Author:: Joshua Timberman (<[email protected]>) | |
# 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 |
This file contains hidden or 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
Day job: Architect for AT&T | |
Favorite Python project: OpenStack (nova/glance) | |
Favorite Conference: Farmhouse Conf (http://farmhouse.la/conf) | |
Python Experience Level: Intermediate to Advanced |
This file contains hidden or 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
::AppConfig = ApplicationConfiguration.new("main.yml", "main_local.yml") | |
AppConfig.use_environment!(Rails.env) | |
## main.yml | |
defaults: &defaults | |
one: won | |
two: too | |
web_service: | |
url: http://foo | |
port: 80 |
This file contains hidden or 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 'rubygems' | |
require 'octopi' | |
require 'choice' | |
include Octopi | |
Choice.options do | |
header '' |
This file contains hidden or 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
# Module for re-running commands from the history in irb and its ilk (script/console) | |
# Usage: | |
# history => view the history | |
# history 7 => rerun line 7 in the history | |
# history /foo/ => rerun the last line in the history matching /foo/ | |
# | |
# Just add this code into your ~/.irbrc. | |
# NOTE: Readline support is required for this to work. | |
module HistoryRepeats | |
class << self |
This file contains hidden or 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
# == WHAT | |
# Simple script for growl notifications in irssi | |
# | |
# == WHO | |
# Nate Murray 2008 | |
# | |
# == CONFIG | |
# /SET growl_on_regex [regex] | |
# /SET growl_channel_regex [regex] | |
# |