This file contains 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
sudo apt-get update | |
sudo apt-get upgrade -y | |
apt-get install -y \ | |
git-core wget curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 \ | |
libsqlite3-dev openssl libcurl4-openssl-dev libc6-dev libssl-dev libmysql++-dev \ | |
make build-essential zlib1g zlib1g-dev libicu-dev redis-server openssh-server \ | |
python-dev python-pip libyaml-dev libreadline6 libreadline6-dev autoconf \ | |
ncurses-dev automake libtool bison subversion |
This file contains 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
export LANG=en_US.UTF-8 |
This file contains 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
# /etc/security/limits.conf | |
root - nofile 65000 | |
deployer - nofile 65000 | |
# Ubuntu upstart file at /etc/init/mongodb.conf | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
script |
This file contains 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
Vagrant::Config.run do |config| | |
config.vm.box = "lucid32" | |
config.vm.customize ["modifyvm", :id, "--memory", 2048] | |
config.vm.network :hostonly, "192.168.33.10" | |
config.vm.forward_port 8080, 5080 | |
config.vm.forward_port 8443, 5443 | |
end |
This file contains 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
function rbenvsudo(){ | |
executable=$1 | |
shift 1 | |
sudo $(rbenv which $executable) $* | |
} |
This file contains 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 :scm, :none | |
set :repository, "." | |
set :deploy_via, :copy |
This file contains 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
[Service] | |
ExecStart=/home/kill/.rvm/bin/ruby-1.9.2-p290 /home/kill/bin/echo-server.rb | |
User=kill | |
StandardOutput=syslog | |
StandardError=syslog |
This file contains 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
.DS_Store | |
*.swp | |
*.swo | |
Gemfile.lock |
This file contains 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
UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1'; | |
DROP DATABASE template1; | |
CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE'; | |
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1'; | |
\c template1 | |
VACUUM FREEZE; | |
UPDATE pg_database SET datallowconn = FALSE WHERE datname = 'template1'; |
This file contains 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
" Vim color scheme | |
" | |
" Name: railscat.vim | |
" Maintainer: Jeff Kreeftmeijer | |
" License: public domain | |
" | |
" A GUI only extended version of the Railscasts+ theme, that comes with | |
" Janus [1] and is, in turn, an extension to the original Railscasts theme | |
" [2], which is a port of the RailsCasts TextMate theme [3] to Vim. | |
" |