Skip to content

Instantly share code, notes, and snippets.

@felclef
Created December 13, 2012 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felclef/4278567 to your computer and use it in GitHub Desktop.
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.
#!/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