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
| $HTTP["host"] =~ "^(www\.)?pedanticass\.com" { | |
| url.redirect = ( | |
| ".*" => "http://www.christopher-schneider.com" | |
| ) | |
| } |
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
| get '/styles.css' | |
| - assert_equal 200, @response.status | |
| - assert !@response.body.empty? | |
| + assert_equal 200, response.status | |
| + assert !response.body.empty? | |
| end | |
| should 'have a homepage' do | |
| get '/' | |
| - assert_equal 200, @response.status |
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
| $ cat gitconfig | |
| [user] | |
| name = Chris Schneider | |
| email = chris@christopher-schneider.com | |
| [apply] | |
| whitespace = nowarn | |
| [alias] | |
| ch = checkout | |
| chb = checkout -b | |
| co = commit |
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
| IKVM compiled version of JRuby run on Windows Vista x64. It wouldn't run on its own for any of the benchmarks from the command line, but ran ok from visual studio debug. I wasn't able to pin down the problem running from the command line, except that it looked like the .net JIT got into an infinite loop. | |
| > jruby.exe -v ..\..\jruby\bench\bench_fib_recursive.rb 3 | |
| jruby 1.3.0 (ruby 1.8.6p287) (2009-04-28 6586) (IKVM.NET 1.6.0) [amd64-java] | |
| 1.516000 0.000000 1.516000 ( 1.408000) | |
| 1.361000 0.000000 1.361000 ( 1.361000) | |
| 1.347000 0.000000 1.347000 ( 1.347000) | |
| > ruby -v ..\..\jruby\bench\bench_fib_recursive.rb 3 |
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
| $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "rails", "app", "models") | |
| # Grab our own vendored copies of AR & AS. I had to hack AS to play nicely with <library> | |
| $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "vendor", "rails", "activesupport", "lib") | |
| $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "vendor", "rails", "activerecord", "lib") | |
| $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') | |
| require 'rubygems' | |
| require 'yaml' |
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
| $ thor monk:test | |
| Loaded suite /opt/local/bin/thor | |
| Started | |
| request setting cookie rack.session=BAh7AA%3D%3D%0A; path=/ | |
| rack.session=BAh7AA%3D%3D%0A; path=/ | |
| Erequest setting cookie rack.session=BAh7AA%3D%3D%0A; path=/ | |
| rack.session=BAh7AA%3D%3D%0A; path=/ | |
| E | |
| Finished in 0.014445 seconds. |
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 'sinatra/base' | |
| module Sinatra | |
| module BeforeTest | |
| def self.registered(app) | |
| app.before do | |
| file_scoped do | |
| require_login! # or whatever. | |
| end |
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
| thin -s 1 -C config.yml -R config.ru start | |
| gittr irclogger # cat config.yml | |
| --- | |
| environment: production | |
| chdir: /srv/ruby/irclogger | |
| address: 127.0.0.1 | |
| user: ruby | |
| group: ruby | |
| port: 10000 |
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
| %select | |
| - @hash.each do |k,v| | |
| %option{:value => k} v |
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
| ### Make history behave itself | |
| export HISTCONTROL=ignoredups # don't put duplicate lines in history | |
| shopt -s histappend # make Bash append rather than overwrite history on disk | |
| shopt -s cdspell # Help me get places | |
| # write previous line to disk when prompt is displayed | |
| export PROMPT_COMMAND='history -a' | |
| export HISTFILESIZE=100000000 | |
| export HISTSIZE=10000000 |