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
# this is dependent on the yaml_db plugin at http://github.com/adamwiggins/yaml_db/tree/master | |
# also, you may not need the RAILS_ENV bit - we do multi-stage deployments | |
namespace :data do | |
desc "Updates staging server database with contents of local development" | |
task :update_server, :roles => :db do | |
system "rake db:data:dump" | |
upload "db/data.yml", "#{current_release}/db/data.yml" | |
run "cd #{current_release}; RAILS_ENV=#{rails_env} rake db:data:load" | |
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
# memory limits for ImageMagick | |
ENV["MAGICK_AREA_LIMIT"] = '64mb' | |
ENV["MAGICK_MAP_LIMIT"] = '32mb' | |
ENV["MAGICK_MEMORY_LIMIT"] = '32mb' |
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 'haml' | |
require 'compass' | |
build_ns = namespace :build do | |
task :haml do | |
Dir["views/*.haml"].each do |haml_filename| | |
puts "Processing #{haml_filename}..." | |
haml = IO.read(haml_filename) |
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
rufo-mbp (git)-[production]-% sudo gem install whenever ~/Dropbox/Projects/Merlin/s74-merlin @ 11:54 | |
Password: | |
======================================================================== | |
Thanks for installing Gemcutter! You can now run: | |
gem push merged into RubyGems 1.3.6 | |
gem owner merged into RubyGems 1.3.6 | |
gem webhook register urls to be pinged when gems are pushed |
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
>> Time.parse("3/30/2010 3:30PM").to_s(:event) | |
=> "Tuesday, March 30th @ 03:30 PM" | |
>> Time.parse("3/25/2010 3:30PM").to_s(:event) | |
=> "Thursday @ 03:30 PM" |
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
#from expojunkie | |
#user nobody; | |
worker_processes 4; | |
worker_rlimit_nofile 8192; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; |
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
export PATH="/opt/android-sdk/tools:/opt/android-sdk/platforms/android-1.5/tools:/usr/local/libexec/git-core:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:$PATH" | |
export MANPATH="/usr/local/man:/usr/local/mysql/man:$MANPATH" | |
export EDITOR="mate -w" | |
export CLICOLOR=true | |
export MENU_COMPLETE=false | |
export CDPATH=.:~/Dropbox/Projects:~/Projects:~/Dropbox/sandbox | |
export ARCHFLAGS="-arch x86_64" | |
HISTSIZE=1000 | |
SAVEHIST=1000 |
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
ActionController::Dispatcher.middleware.insert_before(ActionController::Base.session_store, FlashSessionCookieMiddleware, ActionController::Base.session_options[:session_key]) |
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/env ruby | |
@numbers = [ | |
["-", "|", "|", " ", "|", "|", "-"], | |
[" ", " ", "|", " ", " ", "|", " "], | |
["-", " ", "|", "-", "|", " ", "-"], | |
["-", " ", "|", "-", " ", "|", "-"], | |
[" ", "|", "|", "-", " ", "|", " "], | |
["-", "|", " ", "-", " ", "|", "-"], | |
["-", "|", " ", "-", "|", "|", "-"], |
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
" with inspiration from http://stevelosh.com/blog/2010/09/coming-home-to-vim/ | |
filetype off | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
filetype plugin indent on | |
set nocompatible | |
set tabstop=2 |
OlderNewer