As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Deploying a Sinatra app to Heroku | |
| ## Database | |
| The location of the database Heroku provides can be found in the environment | |
| variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example | |
| on how to use this. | |
| ## Server | |
| Heroku is serving your apps with thin, with means you have all your thin goodness available, | |
| such as EventMachine. |
| inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a | |
| function! s:align() | |
| let p = '^\s*|\s.*\s|\s*$' | |
| if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) | |
| let column = strlen(substitute(getline('.')[0:col('.')],'[^|]','','g')) | |
| let position = strlen(matchstr(getline('.')[0:col('.')],'.*|\s*\zs.*')) | |
| Tabularize/|/l1 | |
| normal! 0 | |
| call search(repeat('[^|]*|',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) |
| -- Add file to Dropbox Script | |
| -- Andrew Burgess, modified a bit from http://www.bencardy.co.uk/blog/dropbox-applescript/ | |
| -- You'll have to change the first part of your Dropbox URL, in the filePath variable | |
| -- Also, make sure the myPath variable points in the right direction | |
| on splitText(delimiter, someText) | |
| set prevTIDs to AppleScript's text item delimiters | |
| set AppleScript's text item delimiters to delimiter | |
| set output to text items of someText |
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
As configured in my dotfiles.
start new:
tmux
start new with session name:
With the support for ruby,git,rvm
Vim 7.3 or better Tested on MacOS and Linux
Introduction to Vim: http://blog.interlinked.org/tutorials/vim_tutorial.html
| source :rubygems | |
| gem 'sinatra' | |
| gem 'json' | |
| gem 'omniauth' | |
| gem 'omniauth-oauth2' | |
| gem 'omniauth-github' | |
| gem 'omniauth-facebook' | |
| gem 'omniauth-twitter' | |
| # gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__) |