Skip to content

Instantly share code, notes, and snippets.

tampham tamphh

Block or report user

Report or block tamphh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View overcommit_debugger.rb
# added to .git-hooks/pre_commit/debugger.rb
module Overcommit::Hook::PreCommit
# Check for Debugger
class Debugger < Base
def run
keywords = config['keywords']
result = execute(command, args: [keywords.join('|')] + applicable_files)
unless result.stdout.empty?
wacko / pre-commit
Last active Feb 18, 2019
Git hook to avoid commit debug lines (binding.pry console.log debugger...)
View pre-commit
#!/usr/bin/env ruby
# Validates that you don't commit forbidden keywords to the repo
# You can skip this checking with 'git commit --no-verify'
exit 0 if ARGV.include?('--no-verify')
# Update this list with your own forbidden keywords
KEYWORDS = %w(binding.pry console.log debugger)
def red(text) "\033[31m#{text}\033[0m"; end
staltz /
Last active Dec 6, 2019
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.