A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| Fedora Setup Notes | |
| 1) If you did not make yourself an administrator during the install, Add yourself to etc/sudoers using the command visudo (allows user to authenticate own account for operations requiring root). | |
| a) su, enter root password when prompted | |
| b) visudo (use vi for sudo to edit the file following instructions in the file; either add self as a sudo user or enable a group for sudo user and add your self to that group using user group commands) | |
| c) ctrl-D (exit root access) | |
| d) logout and log back in or restart | |
| e) Now you should be able to respond to any prompt requiring root with your own login credentials and be able to run commands using sudo with your own credentials. | |
| 2) Google Chrome Setup |
| <? | |
| $purifier_config = HTMLPurifier_Config::createDefault(); | |
| $purifier_config->set('HTML.AllowedElements', 'p, a, ul, ol, li, h1, h2, h3, h4, h5, h6, br, strong, em, b, i'); | |
| $purifier_config->set('HTML.AllowedAttributes', ''); | |
| $purifier_config->set('CSS.AllowedProperties', ''); | |
| $purifier_config->set('AutoFormat.RemoveEmpty', true); | |
| $purifier_config->set('AutoFormat.AutoParagraph', true); | |
| // May cause problems with empty table cells and headers |
| git reset --hard | |
| git clean -f -d | |
| Description: | |
| ============ | |
| Git Tips: Remove untracked files and directories from the working | |
| tree when switching branches or checking out different commits. | |
| Explanation: |
| /* | |
| * ------------------------------------------------------------ | |
| * "THE BEERWARE LICENSE" (Revision 42): | |
| * <author> wrote this code. As long as you retain this | |
| * notice, you can do whatever you want with this stuff. If we | |
| * meet someday, and you think this stuff is worth it, you can | |
| * buy me a beer in return. | |
| * ------------------------------------------------------------ | |
| */ |
| <?php | |
| $url = 'http://en.wikipedia.org/wiki/1,1,1-Trichloroethane'; // example | |
| $config = HTMLPurifier_Config::createDefault(); | |
| $config->set('URI.Base', $url); // set the base URL (overrides a <base element in the HTML head?) | |
| $config->set('URI.MakeAbsolute', true); // make all URLs absolute using the base URL set above | |
| $config->set('AutoFormat.RemoveEmpty', true); // remove empty elements | |
| $config->set('HTML.Doctype', 'XHTML 1.0 Strict'); // valid XML output (?) | |
| $config->set('HTML.AllowedElements', array('p', 'div', 'a', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'ul', 'ol', 'li', 'b', 'i')); |