Skip to content

Instantly share code, notes, and snippets.

View gpennington's full-sized avatar

Garrett Pennington gpennington

View GitHub Profile
@SkyM
SkyM / pre-commit
Created January 19, 2012 17:57
git pre-commit hook to stop bad words
#!/usr/bin/env ruby
FORBIDDEN = [
/\bdebugger\b/,
/\bfuck\b/,
/\bshit\b/,
/\bbitch\b/,
/\bwtf\b/,
/\bconsole\.debug\b/,
/\bLorem\.ipsum\.dolor\.sit\.amet\b/,