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
require 'door' | |
describe Door do | |
it "should be fucking awesome" do | |
Door.should be_awesome | |
end | |
describe "painting" do | |
before(:each) do | |
@door = Door.new |
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
[root@bafflement ~]# pacman -Sy | |
:: Synchronizing package databases... | |
core 32.0K 226.1K/s 00:00:00 [######################################################################################################################################################################################################] 100% | |
extra 406.4K 230.8K/s 00:00:02 [######################################################################################################################################################################################################] 100% | |
community 355.1K 412.8K/s 00:00:01 [######################################################################################################################################################################################################] 100% | |
unstable 0.1K 1261.9K/s 00:00:00 [########################################################################################################################## |
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
# user and group to run as | |
user http http; | |
# number of nginx workers | |
worker_processes 6; | |
# pid of nginx master process | |
pid /srv/temp/pids/nginx.pid; | |
# Number of worker connections. 1024 is a good default |
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
server { # yreality.net | |
server_name yreality.net; | |
root /srv/www/yreality.net; | |
} | |
server { # Default | |
server_name _; | |
include /srv/conf/nginx/includes.conf; | |
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
server { # yreality.net | |
server_name yreality.net; | |
root /srv/www/yreality.net; | |
} | |
server { # Default | |
server_name _; | |
include /srv/conf/nginx/includes.conf; | |
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
require 'rubygems' | |
# require 'merb-extlib' | |
p $LOADED_FEATURES |
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
# ---- -- ---- stringray.rb ---- -- ---- | |
module StringRay | |
VERSION = 2 | |
# Splits a string into words. Not using the obvious names (+#split+, +#words+) | |
# because I want compatibility for inclusion into +String+. | |
def enumerate | |
ray = [] | |
self.each_byte do |byte| |
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
Local setup | |
----------- | |
- `NEW_SERVER_NAME='bafflement'` | |
- `{mkdir, cd} ~/.ec2` | |
- https://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key#x509 | |
- `mv ~/Downloads/*.pem ./` | |
- https://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip | |
- `cp -r /Users/elliottcable/Downloads/ec2-api-tools-1.3-19403/{bin,lib} ./` | |
- `ec2-add-keypair $NEW_SERVER_NAME` | |
- `touch id_rsa-$NEW_SERVER_NAME` |
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
[Fri Aug 15 - 14:04:29] [elliottcable @ Geoffrey] [~/Code/StringRay/] | |
-- rake yard:generate --trace | |
(in /Users/elliottcable/Code/StringRay) | |
** Invoke yard:generate (first_time) | |
** Execute yard:generate | |
rake aborted! | |
wrong number of arguments (2 for 1) | |
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `respond_to?' | |
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `dump' | |
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `save' |
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
# Objects of this class are *almost* a URI! | |
class AlmostURI < String; end | |
[AlmostURI, String, Symbol].each do |klass| | |
klass.class_eval do | |
def / urlpart | |
AlmostURI.new [self, urlpart].join('/') | |
end | |