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
| # Purge old tags | |
| tag_limit=8 | |
| tag_current=`git tag -n |grep -i "jenkins-${JOB_NAME}" | wc -l` | |
| if [ $tag_limit -lt $tag_current ]; then | |
| tag_difference=`expr $tag_current - $tag_limit ` | |
| git tag |grep -i "jenkins-${JOB_NAME}" | head -$tag_difference | xargs git push --delete origin | |
| git tag |grep -i "jenkins-${JOB_NAME}" | head -$tag_difference | xargs git tag -d | |
| fi | |
| # Create tag |
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
| ; Upstream | |
| git branch | grep -v "master" | xargs git push origin --delete | |
| ; Local | |
| git branch | grep -v "master" | xargs git branch -D |
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
| <?php | |
| /** | |
| * Proof of concept, segmentation fault (spl_array.c/igbinary.c) | |
| * when using nested objects. | |
| * | |
| * PHP 5.3.6, PECL-Memcached 1.x, Igbinary 1.x | |
| * | |
| * @author Aleksey Korzun | |
| */ |
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 | |
| ################################################################ | |
| # Pre commit hook for git | |
| # | |
| # @package: utilities | |
| # @subpackage: utilities\git | |
| # @author: Aleksey Korzun <[email protected]> | |
| ################################################################ |
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
| find . -name *.php ! -type d ! -name _tmp_ -exec sh -c 'expand -t 4 {} > _tmp_ && mv _tmp_ {}' \; |
NewerOlder