This file contains 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/env python3 | |
import sys | |
import json | |
import warnings | |
from datetime import datetime | |
def fixup_str(text): | |
return text.encode('latin1').decode('utf8') |
This file contains 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
/vendor/ |
This file contains 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?? |
This file contains 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
*~ | |
*.py[co] | |
/*.egg-info/ |
This file contains 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
/composer.lock | |
/vendor/ |
This file contains 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 | |
# A git pre-commit hook to run php-cs-fixer on all changed php files. | |
# | |
# Inspired from https://gist.github.com/jwage/b1614c96ea22ccaf68b7 | |
# | |
# Author: Elan Ruusamäe <[email protected]> | |
# Date: 2017-05-03 | |
# URL: https://gist.github.com/glensc/cf03265205b67f3735b6fb19ccd4ab2a | |
set -e |
This file contains 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 | |
// https://developer.github.com/webhooks/ | |
// ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' | |
define('HOOK_SECRET', ''); | |
set_exception_handler(function($e) { | |
header('HTTP/1.1 500 Internal Server Error'); | |
error_log(basename(__FILE__, '.php') . ': '. $e->getMessage()); | |
die("Error on line {$e->getLine()}: " . htmlspecialchars($e->getMessage())); |
This file contains 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/python | |
# Script for Subversion integration with Slack | |
# | |
# Uses slackweb module: | |
# https://github.com/satoshi03/slack-python-webhook | |
# 1. Save this file in /usr/bin as slack-svn-hook | |
# 2. Make it executable: | |
# chmod +x /usr/bin/slack-svn-hook | |
# 3. Put this line at the end of file of your_svn_repo/hooks/post-commit: |
NewerOlder