Skip to content

Instantly share code, notes, and snippets.

View theSociableme's full-sized avatar

Mark Wagner theSociableme

View GitHub Profile
@theSociableme
theSociableme / pre-commit
Last active December 23, 2015 03:39 — forked from lsaffie/pre-commit
#!/bin/bash
# Pre commit hook that prevents FORBIDDEN code from being commited.
# Add unwanted code to the FORBIDDEN array as necessary
FILES_PATTERN='\.(rb|js|coffee)(\..+)?$'
FORBIDDEN=( debugger ruby-debug console.log )
for i in "${FORBIDDEN[@]}"
do