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
| # Find files by name | |
| find . -name YourName | |
| # Find files by name with pattern | |
| find . -name *YourName.* | |
| # Find files by extension, and then search for a pattern | |
| find . -name "*.php" -exec grep -l "qV" {} \; | |
| # Find files by extension, and then search for a pattern with REGET |
| #!/bin/bash | |
| siteName="{NAME}" | |
| targetHTML="{your backup dir}" | |
| backupDirHTML="{destination for backup}" | |
| backupDirDB="{destination for backup}" | |
| filenameBackupHTML="code-$siteName-$(date +"%Y%m%d-%H%M%S").tar.gz" |
This gist assumes:
| !opener++ && console.log('getAvatarImg cache hit', url); | |
| Source: http://forrst.com/posts/Shorthand_Javascript_Console_Log_Once-Jta |
| # Create user | |
| CREATE USER user IDENTIFIED BY 'password'; | |
| # Create and user (if doesn´t exist) and grant permissions | |
| GRANT ALL ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password'; | |
| # Update | |
| UPDATE [table] SET [table_field]=[new_value] WHERE [id]=[id]; | |
| # Change user password |
| # Programs | |
| Chrome (https://www.google.com/intl/en/chrome/browser/) | |
| Skype (http://www.skype.com/en/download-skype/skype-for-computer/) | |
| Moom [App store] | |
| Alinof timer [App store] | |
| # Desarrollo | |
| Xcode [App store] |
| # Delete previous commit (locally) but not eliminate the changes | |
| git reset --soft HEAD~1 | |
| # Delete previous commit (locally) and the modified files | |
| git reset --hard HEAD~1 | |
| # Delete a commit already pushed | |
| git revert HEAD | |
| # Pull a branch from repository |