Some CoffeeScript (verbosely commented for clarity)
# Override Rails handling of confirmation
$.rails.allowAction = (element) ->
# The message is something like "Are you sure?"
message = element.data('confirm')| #!/bin/bash | |
| # mkdir /service/redmine-unicorn | |
| # cd /service/redmine-unicorn | |
| # mkdir env | |
| # echo "production" > env/RAILS_ENV | |
| # echo "/home/riywo/redmine" > env/RAILS_ROOT | |
| # echo "/home/riywo/.rbenv" > env/RBENV_ROOT | |
| # echo "riywo" > env/USER | |
| exec 2>&1 \ |
| # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) | |
| defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
| # Enable the 2D Dock | |
| defaults write com.apple.dock no-glass -bool true | |
| # Make Dock icons of hidden applications translucent | |
| defaults write com.apple.dock showhidden -bool true | |
| # Disable menu bar transparency |
| # Rails application template for Rails 3 + Postgres + Git + haml + JQuery + Rspec + Cucumber + Capybara + FactoryGirl | |
| # by Brian Smith <[email protected]> | |
| # Create a default README | |
| file "README.md", <<-EOF | |
| #{app_name} | |
| #{"=" * app_name.length} | |
| TODO: description | |
| *.pbxproj -crlf -diff -merge |
| [user] | |
| email = <your-email> | |
| name = <your-name> | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [alias] | |
| st = status | |
| co = checkout |