Skip to content

Instantly share code, notes, and snippets.

View finger-berlin's full-sized avatar

Alexander Finger finger-berlin

View GitHub Profile
@finger-berlin
finger-berlin / deploy.rb
Last active December 17, 2015 18:49
Capistrano deploy.rb for nginx + rvm + unicorn + delayed_job on Ubuntu LTS 12.x (2013)
require 'capistrano/calendar/recipes'
require 'bundler/capistrano'
require "rvm/capistrano"
load 'deploy/assets'
set :user, 'deployuser'
set :application, 'applicationname'
set :rvm_type, :system
set :rvm_ruby_string, "ruby-1.9.3-p392@#{application}"
anonymous
anonymous / gist:3793194
Created September 27, 2012 09:50
bookmarklet to try out turbolinks
javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://www.artflakes.com/turbolinks.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());
@mphalliday
mphalliday / deploy.rb
Created August 8, 2012 14:19
Capistrano deploy with rbenv
require 'bundler/capistrano'
load 'deploy/assets'
# rbenv stuff
set :default_environment, {
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:/usr/local/git/bin:$PATH"
}
set :bundle_flags, "--deployment --quiet --binstubs --shebang ruby-local-exec"
set :user, 'rails'
@mrsimo
mrsimo / hack.sh
Created April 4, 2012 08:34 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2299719/hack.sh | sh
#