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
--type-add=ruby=.haml,.rake,.rsel,.builder | |
--type-add=html=.html.erb,.html.haml | |
--type-add=js=.js.erb | |
--type-add=css=.sass | |
--type-set=cucumber=.feature | |
--ignore-dir=log | |
--ignore-dir=tmp | |
--ignore-dir=doc | |
--ignore-dir=coverage |
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
# | |
# Problem: | |
# * Driving webrat selenium features through Firefox on Snow Leopard fails. | |
# * Replacing the libsqlite3.dylib file no longer works with Firefox 3.5.6+ | |
# * Driving via Safari also fails (for me) | |
# | |
# Solution | |
# * Replace the selenium-server.jar in the webrat gem with the latest standalone alpha version from OpenQA | |
# |
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
" Vim color file | |
" Maintainer: Roman Gonzalez <romanandnreg at gmail dot com> | |
" Last Change: 2009 Aug 11 | |
" Version: 0.0.1 | |
" Screenshot: http://img.skitch.com/20090811-ti4b27qbftjybmau32ruygjjwx.jpg | |
" URL: http://blog.romanandreg.com | |
" For now this will only work on gvim | |
set background=dark |
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 SeleniumHelpers | |
# Execute JavaScript in the context of your Selenium window | |
def run_javascript(javascript) | |
driver.get_eval <<-JS | |
(function() { | |
with(this) { | |
#{javascript} | |
} | |
}).call(selenium.browserbot.getCurrentWindow()); | |
JS |
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
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 20090928 | |
RUBY_GC_MALLOC_LIMIT = 36000000 | |
RUBY_HEAP_FREE_MIN = 100000 | |
RUBY_HEAP_MIN_SLOTS = 600000 | |
RUBY_HEAP_SLOTS_GROWTH_FACTOR = 1 | |
RUBY_HEAP_SLOTS_INCREMENT = 250000 |
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
namespace :heroku do | |
desc "Prepare and deploy the application to heroku" | |
task :deploy => ['heroku:deploy:default'] | |
namespace :deploy do | |
task :default => ['assets:compile', 'assets:minify', :commit, :push, 'assets:cleanup'] | |
desc "Commit pre-deployment changes" |
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
# Build ... | |
$ tar -xvf libical-0.43.tar | |
$ cd libical-0.43 | |
$ ./configure prefix=/usr/local | |
$ make | |
$ sudo make install | |
# Then follow these instructions to update the search paths in your project |
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
// PROBLEM: | |
// A Sammy app | |
// Current code with nested view queries: | |
get('#/renderings', function() { | |
var ctx = this; | |
couchapp.design.view("renderings", { | |
include_docs: true, | |
success: function(jsona) { |
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
common: &default_settings | |
license_key: 'xxx' | |
app_name: crm-core | |
enabled: false | |
log_level: info | |
ssl: false | |
apdex_t: 0.5 | |
capture_params: false |
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
DEBUG: Using local file for template:/tmp/chef-solo_test/cookbooks/testbook/templates/default/somservice.conf.erb | |
ERROR: template[/root/someservice.conf] (/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/recipe.rb line 189) had an error: | |
different prefix: "/" and "." | |
/usr/lib/ruby/1.8/pathname.rb:709:in `relative_path_from'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/provider/template.rb:56:in `action_create'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `send'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:58:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:57:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:63:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:373:in `converge'/usr/li |