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 | |
| // To the extent possible under law, I (Stephan Sokolow) waive all copyright and related or | |
| // neighbouring rights to this code snippet. (Though it'd still be nice if you mention me) | |
| // If we're running under `php -S` with PHP 5.4.0+ | |
| if (php_sapi_name() == 'cli-server') { | |
| // Replicate the effects of basic "index.php"-hiding mod_rewrite rules | |
| // Tested working under FatFreeFramework 2.0.6 through 2.0.12. | |
| $_SERVER['SCRIPT_NAME'] = str_replace(__DIR__, '', __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
| # Use git and git+ssh instead of https | |
| [url "git://github.com/"] | |
| insteadOf = https://github.com/ | |
| [url "git@github.com:"] | |
| pushInsteadOf = "git://github.com/" | |
| [url "git@github.com:"] | |
| pushInsteadOf = "https://github.com/" |