Skip to content

Instantly share code, notes, and snippets.

View tannermares's full-sized avatar

Tanner Mares tannermares

View GitHub Profile
#!/usr/bin/env ruby
if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/
puts "\e[31mPlease focus and remove your :focus tags before committing!\e[0m"
exit 1
end
if `git diff --cached app/assets/javascripts` =~ /\+\s*console.log/
puts "\e[31mPlease remove your console.logs before committing!\e[0m"
exit 1
@tannermares
tannermares / nginx.rb
Last active August 29, 2015 14:04 — forked from mranallo/nginx.rb
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.6.1.tar.gz'
sha1 'e58c865f67b580541ed4eadf69d1676762bf50ab'
devel do
url 'http://nginx.org/download/nginx-1.5.1.tar.gz'
sha1 'bd5a5e7dba39a4aa166918112367589f165ce5bc'