Skip to content

Instantly share code, notes, and snippets.

View foxzool's full-sized avatar

ZoOL foxzool

View GitHub Profile
class AppBuilder < Rails::AppBuilder
include Thor::Actions
include Thor::Shell
def test
append_test_gems
rspec
cucumber
jasmine
end
source 'http://rubygems.org'
# --------------------
# Rails
# --------------------
#gem 'arel', :git => 'git://github.com/rails/arel.git'#, :branch => '1-0-stable'
gem 'rails', '~> 3.0.3'
# gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable'
# --------------------
@josegonzalez
josegonzalez / .gitconfig
Created September 5, 2010 07:45
My ~/.gitconfig
[user]
name = MY_NAME
email = MY_EMAIL_ADDRESS
[git-tmbundle]
gitnub-path = /Applications/GitNub.app
gitx-path = /Applications/GitX.app
show-diff-check = yes
[github]
user = GITUB_USER
token = GITHUB_TOKEN
# Use at least one worker per core
worker_processes 16
# Help ensure your application will always spawn in the symlinked "current" directory that Capistrano sets up
working_directory "/var/www/apps/superfeedr.com/current"
# Listen on a Unix domain socket, use the default backlog size
listen "/tmp/unicorn.sock", :backlog => 1024
# Nuke workers after 30 seconds instead of 60 seconds (the default)
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
APP_ROOT=/home/deploy/public_html/rm/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENV=production
@netzpirat
netzpirat / deploy.rb
Created May 14, 2009 10:06
Capistrano recipe to sync rails database and files within a multi stage environment
set :sync_directories, ["public/assets", "public/galleries"]
set :sync_backups, 3