project-folder/
.git
wp-admin/
wp-content/
wp-includes/
.htaccess
| text.replace(/<a.*?href=["']([^"']*)["'][^>]*>([^<]*)</a>/igm, "[$2]($1)"); |
| /** | |
| * Found in http://mapbox.com footer (hover robot) | |
| */ | |
| .element:hover { | |
| -webkit-animation: rainbow 4s steps(36) infinite; | |
| } | |
| @-webkit-keyframes rainbow { | |
| from { -webkit-filter:hue-rotate(10deg); } | |
| to { -webkit-filter:hue-rotate(360deg); } |
| # Put this file in folder /etc/cron.d/ | |
| MAILTO="debug@example.com" | |
| 0 1 * * * root /usr/local/sbin/certbot-renew.sh |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <style type="text/css"> | |
| div { | |
| display: block; | |
| width: 200px; | |
| height: 200px; |
| #!/bin/bash | |
| # Simple way to get all your local branches up to date | |
| # Ps: Add this to your .bash_profile or other file as a global helper | |
| function _gitup(){ | |
| branches=`git branch`; | |
| current_branch=null; | |
| git_status=`git status -s`; | |
| has_stashed=false; |
| /** | |
| * A special function that runs when the spreadsheet is open, used to add a | |
| * custom menu to the spreadsheet. | |
| */ | |
| function onOpen() { | |
| var spreadsheet = SpreadsheetApp.getActive(); | |
| var menuItems = [ | |
| {name: "Unquote.li / Generate mysql insert on update from selection", functionName: "unquoteGenMySqlInsert_"} | |
| ]; | |
| spreadsheet.addMenu('MyHelpers', menuItems); |
| function hasClass(el, className) { | |
| return el.classList ? el.classList.contains(className) : new RegExp('\\b' + className + '\\b').test(el.className); | |
| } | |
| function addClass(el, className) { | |
| if (el.classList) el.classList.add(className); | |
| else if (!hasClass(el, className)) el.className += ' ' + className; | |
| } | |
| function removeClass(el, className) { |
| echo '1. Updating WP-CLI in /usr/local/bin/' \ | |
| && echo '2. Current version: ' \ | |
| && wp --version \ | |
| && cd /usr/local/bin \ | |
| && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | |
| && chmod +x wp-cli.phar \ | |
| && echo '3. WP-CLI test...' \ | |
| && php wp-cli.phar --version \ | |
| && echo '4. Replacing...' \ | |
| && sudo mv wp-cli.phar wp \ |
| /** | |
| * Global module | |
| * @source https://addyosmani.com/resources/essentialjsdesignpatterns/book/ | |
| */ | |
| var App = (function () { | |
| // Module object | |
| var module = {}, | |
| privateVariable = "Hello World"; | |