Skip to content

Instantly share code, notes, and snippets.

View drazen's full-sized avatar

Drazen Loncaric drazen

View GitHub Profile
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (http://rvm.io)
set :domain, 'esdb.cn'
set :identity_file, '/User/somebody/.ssh/somebody.pem'
set :deploy_to, '/home/ubuntu/apps/xxx.com'
set :repository, 'ssh://git@bitbucket.org/somebody/xxx.com.git'
set :branch, 'master'
@drazen
drazen / install.md
Last active August 29, 2015 14:02 — forked from galulex/install.md
Basic RoR 4 setup w/ nginx, mongo, redis, imagemagick

Developer libs

build-essential, imagemagick, curl, git, vim, sqlite, nodejs, nokogiri...

sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libxslt1-dev libxml2-dev libmagickwand-dev imagemagick libmysql++-dev libsqlite3-dev libcurl4-openssl-dev curl git mysql-server mysql-client ruby-mysql libmysqlclient-dev nodejs

Ruby (from src)

$ wget http://ftp.ruby-lang.org/pub/ruby/.tar.gz $ tar -zxf ruby-.....gz

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev libmagickwand-dev imagemagick libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk mysql-server mysql-client ruby-mysql libmysqlclient-dev mysql-workbench exuberant-ctags icedtea-plugin nodejs rar wmctrl

Ruby

ruby 1.9.3

@drazen
drazen / Subdued "end" keyword in SublimeText
Created April 17, 2014 18:14
Subdued end keyword in sublime text
Although Ruby is not a whitespace significant language, multiple "end" keywords in the keyword syntax color highlighting can be glaring. If you're consistent with indentation... a loudly colored "end" keyword doesn't add much. So lets tone down the color on the "end" keyword in sublime text.
In ruby.tm-language:
replace
<string>(?&lt;!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![?!])</string>
with
<string>(?&lt;!\.)\b(BEGIN|begin|case|class|else|elsif|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![?!])</string>