Skip to content

Instantly share code, notes, and snippets.

View madasha's full-sized avatar

Mihail Irintchev madasha

  • SiteGround Inc.
  • Sofia, Bulgaria
View GitHub Profile
@proofek
proofek / pre-receive
Created June 2, 2011 14:21
pre-receive git hook to run php linter
#!/usr/bin/php
<?php
echo "\nRunning php linter...\n";
$params = explode(' ', file_get_contents('php://stdin'));
$ref = trim($params[1]);
$diff = array();
$return = 0;