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
bsmith@bsmith-laptop!1264 | |
-> time rspec -fd spec/models | |
Planet | |
Age | |
records the year of its birth | |
knows it's age | |
Size | |
has a size of 100 when width and height are 10 |
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/vi --version | |
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 6 2011 10:36:56) |
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
# KBounce clone | |
# Setup a basic canvas, 600x400, not resizable | |
Shoes.app :width => 600, :height => 400, :resizable => false do | |
background black | |
# Put our vertical and horizontal baracades in a list | |
@linesv = [] | |
@linesh = [] | |
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
[alias] | |
serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git |
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
require 'chef/knife' | |
class Chef | |
class Knife | |
class RoleCopy < Knife | |
deps do | |
require 'chef/role' | |
require 'chef/json_compat' | |
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
#!/bin/bash | |
# Get all your roles, save them to disk. | |
set -e | |
KNIFE=/usr/bin/knife | |
SAVE_DIR=~/chef-repo/roles | |
for role in `$KNIFE role list`; do | |
$KNIFE role show -F json $role > $SAVE_DIR/$role.json; |
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/bash | |
# Get all your data bags, save them to disk | |
set -e | |
KNIFE=/usr/bin/knife | |
SAVE_DIR=~/chef-repo/data_bags | |
for bag in `$KNIFE data bag list`; do | |
for item in `$KNIFE data bag show $bag`; do |
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
You and I haven’t spoke before, but I am a representative of XXX, Inc. | |
Earlier today I took part in a conversation with an individual who suggested that we have a chat. This individual thinks you might be well suited for a few opportunities that my company currently represents, but first things first I wanted to have a quick chat with you to introduce myself, and learn more about youpr current employment situation. Please feel free to respond to this email, or call me at XXXXXXXXXX so we can have a brief discussion. | |
I look forward to hearing from you soon. |
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
template "/opt/local/etc/myservice.cfg" do | |
source "myservice.cfg.erb" | |
owner "user" | |
after_changed "some_command" | |
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
>>> a = ["a", "b" "c"] | |
>>> a | |
['a', 'bc'] |