As configured in my dotfiles.
start new:
tmux
start new with session name:
| # | |
| # Inspired by | |
| # http://dev.rubyonrails.org/svn/rails/plugins/account_location/lib/account_location.rb | |
| # | |
| module SubdomainAccounts | |
| def self.included( controller ) | |
| controller.helper_method(:account_domain, :account_subdomain, :account_url, :current_account, :default_account_subdomain, :default_account_url) | |
| end | |
| protected |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| [api]: New apis / changes to apis | |
| [test]: Update test/* files | |
| [dist]: Changes to submodules, version bumps, updates to package.json | |
| [minor]: Small changes | |
| [doc]: Updates to documentation | |
| [ux]: Updates to UX | |
| [fix]: Bug fixes | |
| [bin]: Update binary scripts associated with the project | |
| [merge]: Resolved git merge from upstream or otherwise | |
| [refactor]: Refactor of existing code with no external API changes |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: APPLICATION | |
| # Required-Start: $all | |
| # Required-Stop: $network $local_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start the APPLICATION unicorns at boot | |
| # Description: Enable APPLICATION at boot time. | |
| ### END INIT INFO |
| RAILS_ROOT = ENV['RAILS_ROOT'] || File.expand_path(File.dirname(File.dirname(__FILE__))) | |
| if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
| begin | |
| rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
| rvm_lib_path = File.join(rvm_path, 'lib') | |
| $LOAD_PATH.unshift rvm_lib_path | |
| require 'rvm' | |
| RVM.use_from_path! RAILS_ROOT | |
| rescue LoadError |
| The MIT License (MIT) | |
| Copyright (c) James Dennes | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: unicorn | |
| # Required-Start: $local_fs $remote_fs $network $syslog | |
| # Required-Stop: $local_fs $remote_fs $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the unicorn web server | |
| # Description: starts unicorn |
| #! /bin/sh | |
| PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
| DESC="Unicorn server" | |
| NAME=unicorn | |
| RVM=/usr/local/rvm/bin/rvm | |
| RVM_EXEC_ARGS="1.9.3@application exec" | |
| RAILS_DIR=/data/application | |
| DAEMON=$RVM | |
| DAEMON_ARGS="$RVM_EXEC_ARGS $RAILS_DIR/bin/unicorn -c $RAILS_DIR/config/unicorn.rb -E staging -D" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="email"> | |
| <span>Enter your email to sign up</span> | |
| <form action="/subscribe.php" id="invite" method="POST"> |
As configured in my dotfiles.
start new:
tmux
start new with session name: