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')| if [[ ( -a .rvmrc ) && $TERM == 'screen' ]]; then | |
| source .rvmrc | |
| fi |
| tell application "Finder" | |
| if (name of every application process) contains "Skype" then | |
| tell application "Skype" | |
| send command "SET USERSTATUS ONLINE" script name "pomodoro" | |
| send command "SET PROFILE MOOD_TEXT " script name "pomodoro" | |
| end tell | |
| end if | |
| end tell | |
| tell application "Twitter" to activate |
| hardstatus on | |
| hardstatus alwayslastline | |
| hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %m/%d %C%a " | |
| termcapinfo xterm* ti@:te@ | |
| startup_message off | |
| vbell off | |
| screen -t irb 1 irb | |
| screen -t vi 2 vi |
| # 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 |
| # 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 |
| --- pjax.orig.rb 2012-05-04 22:46:22.000000000 -0700 | |
| +++ pjax.rb 2012-05-04 22:46:57.000000000 -0700 | |
| @@ -13,6 +13,10 @@ | |
| headers = HeaderHash.new(headers) | |
| if pjax?(env) | |
| + request_parameters = env['action_dispatch.request.parameters'] | |
| + controller_name = request_parameters[:controller] | |
| + action_name = request_parameters['action'] | |
| + |
| #!/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 \ |
I hereby claim:
To claim this, I am signing this object:
| # root and users in group wheel can run anything on any machine as any user | |
| root ALL = (ALL) ALL | |
| %admin ALL = (ALL) ALL | |
| nclark ALL = (ALL) ALL, NOPASSWD: /usr/local/bin/svc,/usr/local/bin/svstat |