Skip to content

Instantly share code, notes, and snippets.

View guenter's full-sized avatar

Tobi Knaup guenter

View GitHub Profile
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@clizzin
clizzin / gist:1096153
Created July 20, 2011 23:09
Git pre-commit hook
#!/usr/bin/env ruby
# Put the contents of this gist into .git/hooks/pre-commit
# Make sure to chmod a+x .git/hooks/pre-commit
flag = false
modified_files = `git diff-index --name-status --cached HEAD`.
map {|line| line.split}.
select {|(status, name)| status != 'D'}. # ignore deleted files