Skip to content

Instantly share code, notes, and snippets.

@marcin
marcin / hack.sh
Created April 1, 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/2108403/hack.sh | sh
#
@mdesantis
mdesantis / rails_3_template.rb
Created April 25, 2012 11:20
Rails 3 template (Postgres, RSpec, Capybara, Guard/Linux, Spork)
#!/usr/bin/env ruby -w
#
# Rails 3 template (Postgres, RSpec, Capybara, Guard/libnotify4Linux, Spork)
# This should be used in this way:
#
# rails new APP_NAME -d postgresql -T --skip-bundle -m https://raw.github.com/gist/2489048/rails_3_template.rb
# 1. Non-SSL source proposal (due to bundler bug)
if yes?("Do you want to use the non-SSL source of rubygems.org as gems source?")
# run %q(sed -i 's/https:\/\/rubygems.org/http:\/\/rubygems.org/' Gemfile)