Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| <?php | |
| /* | |
| Plugin Name: Disable Wptexturize | |
| Description: Removes most calls to this incredible slow function. | |
| Version: 1.0 | |
| Author: Thomas Scholz | |
| Author URI: http://toscho.de | |
| License: GPL | |
| */ |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| drush user-create adminuser --mail="[email protected]" --password="UserPw"; drush user-add-role "administrator" adminuser |
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php | |
| /** | |
| * Manage WooCommerce styles and scripts. | |
| */ | |
| function grd_woocommerce_script_cleaner() { | |
| // Remove the generator tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| # We only have one backend to define: NGINX | |
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8080"; | |
| } | |
| # Only allow purging from specific IPs | |
| acl purge { | |
| "localhost"; | |
| "127.0.0.1"; |
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
| <?php | |
| define('DS', DIRECTORY_SEPARATOR); | |
| function _getExtractSchemaStatement($sqlFileName, $db) | |
| { | |
| $dumpSchema = 'mysqldump' . ' '; | |
| $dumpSchema .= '--no-data' . ' '; | |
| $dumpSchema .= '-u ' . $db['user'] . ' '; | |
| $dumpSchema .= '-p' . $db['pass'] . ' '; | |
| $dumpSchema .= '-h ' . $db['host'] . ' '; |