This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV_SUPATH PATH=/usr/local/ree-1.8.7-2010.02/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
ENV_PATH PATH=/usr/local/ree-1.8.7-2010.02/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:sunny: | |
:zap: | |
:leaves: | |
:lipstick: | |
:cop: | |
:wheelchair: | |
:fish: | |
:hammer: | |
:moneybag: | |
:calling: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mostly yanked from: | |
# http://bit.ly/nginx-unicorn-setup | |
upstream example1-herd { | |
# fail_timeout=0 means we always retry an upstream even if it failed | |
# to return a good HTTP response (in case the Unicorn master nukes a | |
# single worker for timing out). | |
server unix:/tmp/example1.com.socket fail_timeout=0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. | |
app_dir = "/home/example1.com/website/" | |
worker_processes 2 | |
working_directory app_dir | |
# Load app into the master before forking workers for super-fast | |
# worker spawn times | |
preload_app true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set wildmenu " turn on wild menu | |
set wildmode=list:longest,full |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Search for mkdCode and throw this in there where you like...I did on line 72 | |
syn region mkdCode start=/^``[^`]*/ end=/[^`]*``.*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ---------------------------------------------------------------------------- | |
" Terminal setup | |
" ---------------------------------------------------------------------------- | |
set term=xterm-256color | |
set t_Co=256 "Set terminal to 256 colors | |
" ---------------------------------------------------------------------------- | |
" Syntax highlighting | |
" ---------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" --------------------------------------------------------------------------- | |
" Folding | |
" --------------------------------------------------------------------------- | |
set foldmethod=syntax " Syntax highlighting items specify folds | |
set foldtext=getline(v:foldstart) " Set text displayed in "foldbar" when code is folded | |
set fillchars=fold:\ " Fill foldline "empty space" with...empty spaces (instead of default "-" character) | |
set foldcolumn=1 " Sets width of "foldcolumn" on left of screen used to display foldstatus indicators | |
set foldlevel=1 " Folds below 1-level. Class/Module-level definitions expanded...all others folded by default | |
" 'open' folds with the space bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EmailLinkHelper | |
CHECK_YOUR_EMAIL = "<h6>Check your email. Your account link will arrive shortly</h6>" | |
EMAIL_PROVIDERS = { | |
'gmail.com' => 'http://gmail.com' | |
} | |
def email_link(email) | |
domain = email.split('@').last | |
EMAIL_PROVIDERS[domain] || CHECK_YOUR_EMAIL | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After shutting down the app servers, the clients (open browsers) get a dump | |
# of all messages which have been held back...and this is dumped out to the nginx log | |
2011/09/26 22:55:57 [error] 5042#0: *1 connect() failed (111: Connection refused) while | |
connecting to upstream, client: 204.51.3.162, server: somedomain.com, request: | |
"GET /stream/0D9A1580 HTTP/1.1", upstream: "http://127.0.0.1:5000/stream/0D9A1580", | |
host: "somedomain.com", referrer: "http://somedomain.com/tags/0D9A1580/" |