Skip to content

Instantly share code, notes, and snippets.

@joes
joes / keybase.md
Created December 21, 2016 10:40
keybase proof

Keybase proof

I hereby claim:

  • I am joes on github.
  • I am joes (https://keybase.io/joes) on keybase.
  • I have a public key ASAFIJYvxCZWBSCDfheysJYTbZvDPuSIWytKyX8pG0NR7Qo

To claim this, I am signing this object:

@joes
joes / git-pre-commit-php.rb
Created August 17, 2011 08:46
git pre-commit hook with php syntax checking and more
#!/usr/bin/env ruby
#
# Author: Joe Siponen <joe.siponen@gmail.com>
#
# A hook script to verify that only syntactically valid php code is commited.
#
# This hook also stops files containing the string '[[NOCOMMIT' from being committed.
# This provides an mechanism allowing you to protect yourself from committing
# code you have added for debugging purposes by adding the string '[[NOCOMMIT'
# near the relevant section of code.