This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# driver script to run multiple update "hooklets". Each "hooklet" performs a | |
# specific (possibly site-local) check, and they *all* have to succeed for the | |
# push to succeed. | |
# HOW TO USE: | |
# (1) rename this file to remove the .sample extension | |
# (2) make the renamed file executable (chmod +x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Simple playlist generator m3u | |
#@author paunin | |
OLDIFS=$IFS | |
IFS=$'\n' | |
rm -rf playlists | |
mkdir playlists | |
find $1 -maxdepth 1 -type d | while read dir | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://stackoverflow.com/questions/8730514/chaining-git-hooks | |
# author: orefalo | |
hookname=`basename $0` | |
FILE=`mktemp` | |
trap 'rm -f $FILE' EXIT | |
cat - > $FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# PHP CodeSniffer pre-receive hook for git | |
#exit 0 #if you want to skip all validation | |
PHPCS_BIN="phpcs" | |
PHPCS_CODING_STANDARD="PSR2" | |
TMP_DIR=$(mktemp -d phpcs-pre-receive-hook.XXXXXXXX) | |
mkdir "$TMP_DIR/source" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$cs = 'phpcs'; | |
$md = 'phpmd'; | |
$output = []; | |
$return = 0; | |
$defaultCsStandard = 'PSR2'; | |
$defaultMdRules = 'codesize,cleancode,controversial,unusedcode,naming,design'; | |
$gitRoot = exec('git rev-parse --show-toplevel', $output); |
NewerOlder