Skip to content

Instantly share code, notes, and snippets.

View ethankent's full-sized avatar

Ethan Kent ethankent

View GitHub Profile
@ethankent
ethankent / pre-commit
Created August 30, 2016 18:31 — forked from chelmertz/pre-commit
pre-commit hook for git, running php lint
#!/usr/bin/php
<?php
// copied from http://phpadvent.org/2008/dont-commit-that-error-by-travis-swicegood
// authored by Travis Swicegood
$output = array();
$return = 0;
exec('git rev-parse --verify HEAD 2> /dev/null', $output, $return);
$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904';

Keybase proof

I hereby claim:

  • I am ethankent on github.
  • I am eak (https://keybase.io/eak) on keybase.
  • I have a public key ASAzEjt68pALKiVgWcZ7wkB8RQgUlfK1JTwp-vqZ6fqjTwo

To claim this, I am signing this object: