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 | |
/** | |
* == About this Gist == | |
* | |
* Code to require from wp-config.php to enhance information available for debugging. | |
* | |
* == DO == test whether it's all working by using the code at the end of the gist. | |
* | |
* If error logging is not working, try: | |
* - Check if the file was created at all, if not, upload an empty (text) file named error.log and try again. |
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 | |
/* | |
Plugin Name: Disable plugins when doing local dev | |
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
Version: 0.1.2 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
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 | |
function on_shutdown(){ | |
global $php_errormsg; | |
echo "<!--\n"; | |
echo "\n\tHeaders Sent:"; | |
$file = $line = null; | |
headers_sent($file, $line); | |
echo "\n\t\t$file: $line"; | |
echo "\n\tLast Error:"; |
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 node | |
//# prerequisites: | |
//# npm -g install request path | |
//# TODO: modify user agent string | |
var USER, savepath, | |
request = require('request'), | |
path = require('path'), | |
fs = require('fs'), |