a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#!/usr/bin/env bash | |
# Configuration | |
SERVER='myserver' | |
DEPLOY_TO='/path/to/app' | |
EXCLUDE='*.swp .git/ db/sphinx/ tmp/ log/' | |
DRY_RUN=false | |
DEPLOY_GEM_PATH='/opt/ec/ruby/1.8.7/lib/ruby/gems/1.8' |
" Port of my favorite theme Made of Code by Mark Dodwell | |
" For Textmate Theme visit - http://madeofcode.com/posts/29-photo-my-new-textmate-theme-8220-made-of-code-8221-mdash-download-9-feb-2010-update-t | |
" Vim color file | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset |
(function($) { | |
// Used by dateinput | |
$.expr = {':': {}}; | |
// Used by bootstrap | |
$.support = {}; | |
// Used by dateinput | |
$.fn.clone = function(){ | |
var ret = $(); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# bash alias | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
# bash function, usage: $ st -p [projectname] -opt2 -opt3 | |
function st() { | |
if [ -n "$1" -a -n "$2" ]; then # if more than one argument | |
if [ "$1" = "-p" -o "$1" = "--project" ]; then # if arg1 is -p or --project | |
local projectfile="$2" | |
[[ $projectfile != *.sublime-project ]] && projectfile="$2.sublime-project" # detect if arg2 already includes the ext | |
if [ -e $projectfile ]; then # does project file exist? |
class MyMailer < ActionMailer::Base | |
def notice(user) | |
# ... | |
mail(to: @to, from: @from, subject: @subject) do |format| | |
format.html { render text: @html_content } | |
format.text { render text: @text_content } | |
end | |
end | |
end |
# default vim on osx doesn't have python, ruby support or clipboard support. These configure options add all that | |
# I also ran into problems using rvm ruby, had to include those libs in the LDFLAGS for vim | |
# Steps: | |
$ rvm install 1.9.1 | |
$ rvm use 1.9.1 # vim doesn't support anything higher | |
$ curl ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | tar xj | |
$ cd vim73 | |
$ ./configure --with-features=huge --enable-perlinterp=yes --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-multibyte |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local YELLOW="\[\033[0;33m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local WHITE="\[\033[1;37m\]" |
require 'open3' | |
$CR = "\033[0m" # color reset | |
$red = "\033[1m\033[31m" | |
$green = "\033[1m\033[32m" | |
$yellow = "\033[1m\033[33m" | |
$blue = "\033[1m\033[34m" | |
ssh_options[:forward_agent] = true | |
ssh_options[:paranoid] = false |