Skip to content

Instantly share code, notes, and snippets.

View stratigos's full-sized avatar
🧑‍🔬
Building the Internet

Todd stratigos

🧑‍🔬
Building the Internet
View GitHub Profile
@stratigos
stratigos / sublime snippet for php error_log with newlines
Created May 2, 2014 16:03
Sublime 2 Snippet for PHP error_log() with newlines, for debugging
<snippet>
<content><![CDATA[
error_log("\n\n $1 \n\n");
]]></content>
<tabTrigger>error</tabTrigger>
<scope>source.php</scope>
<description>Err Log w Newlines</description>
</snippet>
@stratigos
stratigos / sublime php recursive die snippet
Created May 2, 2014 16:02
Sublime 2 Snippet for a recursive print and die in PHP, for debugging
<snippet>
<content><![CDATA[
echo('<pre>');
print_r($1);
echo('</pre>');
die();
]]></content>
<tabTrigger>die</tabTrigger>
<scope>source.php</scope>
<description>Recursive Die</description>
@stratigos
stratigos / Check for PHP debug code in an SVN diff
Last active October 29, 2015 22:06
Check SVN Working Copy for Debug Code
# place in ~/.bash_aliases or ~/.profile or something similar
alias svndiffd="svn diff | egrep '(print_r)|(die\()|(error_log)|(debug)|(DEBUG)|(todo)|(TODO)|(console.log)|(alert\()'"