In your shell:
cd ~/.vim
git clone git://github.com/juvenn/mustache.vim.git
mv mustache.vim/syntax/* syntax/
mv mustache.vim/indent/* indent/
mv mustache.vim/ftdetect/* ftdetect/rm -rf mustache.vim
| # -------------------------------------------- | |
| # General | |
| # -------------------------------------------- | |
| set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments. | |
| set :application, "domain.com" # Application name | |
| set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ... | |
| # -------------------------------------------- | |
| # Server | |
| # -------------------------------------------- |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>beforeRunningCommand</key> | |
| <string>nop</string> | |
| <key>bundleUUID</key> | |
| <string>C9BD1ADE-4FD9-4842-A641-DFB373B7D42C</string> | |
| <key>command</key> | |
| <string>#!/usr/bin/env ruby |
| # If your workers are inactive for a long period of time, they'll lose | |
| # their MySQL connection. | |
| # | |
| # This hack ensures we re-connect whenever a connection is | |
| # lost. Because, really. why not? | |
| # | |
| # Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar) | |
| # | |
| # From: | |
| # http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/ |
| # Drop this file in config/initializers to run your Rails project on Ruby 1.9. | |
| # This is three separate monkey patches -- see comments in code below for the source of each. | |
| # None of them are original to me, I just put them in one file for easily dropping into my Rails projects. | |
| # Also see original sources for pros and cons of each patch. Most notably, the MySQL patch just assumes | |
| # that everything in your database is stored as UTF-8. This was true for me, and there's a good chance it's | |
| # true for you too, in which case this is a quick, practical solution to get you up and running on Ruby 1.9. | |
| # | |
| # Andre Lewis 1/2010 | |
| # encoding: utf-8 |
| 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('.')) |
In your shell:
cd ~/.vim
git clone git://github.com/juvenn/mustache.vim.git
mv mustache.vim/syntax/* syntax/
mv mustache.vim/indent/* indent/
mv mustache.vim/ftdetect/* ftdetect/rm -rf mustache.vim
| set :sync_directories, ["public/assets", "public/galleries"] | |
| set :sync_backups, 3 |
| install PostgreSQL 9 in Mac OSX via Homebrew | |
| Mac OS X Snow Leopard | |
| System Version: Mac OS X 10.6.5 | |
| Kernel Version: Darwin 10.5.0 | |
| Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
| sh-3.2# brew install postgresql |
| # A small DSL for helping parsing documents using Nokogiri::XML::Reader. The | |
| # XML Reader is a good way to move a cursor through a (large) XML document fast, | |
| # but is not as cumbersome as writing a full SAX document handler. Read about | |
| # it here: http://nokogiri.org/Nokogiri/XML/Reader.html | |
| # | |
| # Just pass the reader in this parser and specificy the nodes that you are interested | |
| # in in a block. You can just parse every node or only look inside certain nodes. | |
| # | |
| # A small example: | |
| # |