Skip to content

Instantly share code, notes, and snippets.

View henrypoydar's full-sized avatar
🤓

Henry Poydar henrypoydar

🤓
View GitHub Profile
# 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
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"
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
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
" 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
#
# 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
#
--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
# Rack middleware for serving individual javascript files
# from non-public directories to the Jammit asset packager
# when in test or development modes
#
# To use, add this line to the relevant (development)
# environment file:
#
# config.middleware.use 'JavascriptsHost'
#
We couldn’t find that file to show.
# Bundler doesn't seem to work with gems that have native extensions
# in 1.9.x unless they were installed beforehand. A problem when
# thinking about cloud deployments with fresh instances.
myapp$ rvm use system
=> Now using system ruby
myapp$ bundle install # Gems with native extensions are already installed for this ruby version
=> ... Your bundle is complete!
myapp$ rake
=> ... green