Created
December 13, 2012 18:37
-
-
Save felclef/4278567 to your computer and use it in GitHub Desktop.
Created for MacOS, so you might need change something here... This script helps a log when you try to read errors printed as HTML, e.g. PHP's XDebug output inside a image src's attribute. Just copy the content and p2browser to read it with at least a drop of dignity.
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/bash | |
function p2browser() { | |
pbpaste > /var/tmp/clf-output.html && open /var/tmp/clf-output.html && sleep 3 && rm /var/tmp/clf-output.html | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment