Skip to content

Instantly share code, notes, and snippets.

View claytron's full-sized avatar
😎
My future is so bright.

Clayton Parker claytron

😎
My future is so bright.
View GitHub Profile
@claytron
claytron / pre-commit
Last active August 29, 2015 14:18 — forked from mileszs/pre-commit
#!/usr/bin/env ruby
hits = []
checks = {
#'_spec\.rb$' => ['focus:[:space:]*true'],
'\.rb$' => ['binding\.pry', 'debugger']
}
# Find the names of all the filenames that have been (A)dded (C)opied or (M)odified
filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n")
@claytron
claytron / init.yml
Last active August 29, 2015 14:02 — forked from renoirb/init.yml
#
# How to install automatically Oracle Java 7 under Salt Stack
#
# Thanks Oracle for complicating things :(
#
# 1. Create a java/ folder in your salt master
# 2. Paste this file in init.sls
# 3. salt '*' state.sls java
#
# Source: