You can repeat step 2 as many times and as many domains you like.
You need to have openssl installed.
-sha256
flag is needed to make chrome trust your new certificates as well.
<?php | |
/* | |
* Author: Onni Hakala / Seravo Oy | |
* Source: https://gist.github.com/onnimonni/8f58e72bc433c54f7b17 | |
* Description: Use these default options which are good for every typical child theme | |
* You can just copy-paste this into child-theme functions.php | |
*/ | |
if (!class_exists('ChildThemeOptions')) { | |
class ChildThemeOptions { |
find . -type f \( -name "*.html" -or -name "*.css" -or -name "*.php" -or -name "*.js" -or -name "*.json" -or -name "*.yml" \) | cut -c 3- | while read line ; do echo $line; echo "---"; cat "$line"; echo "---"; echo ; done > all-code.txt && cupsfilter -D all-code.txt > code.pdf |
<?php | |
/* | |
Plugin Name: WooCommerce Nosto Tagging | |
Plugin URI: http://wordpress.org/extend/plugins/woocommerce-nosto-tagging/ | |
Description: Implements the required tagging blocks for using Nosto marketing automation service. | |
Author: Nosto Solutions Ltd | |
Version: 1.0.4 | |
License: GPLv2 | |
*/ |
<?php | |
/** | |
* Plugin Name: Simplified user roles | |
* Plugin URI: https://github.com/roots/bedrock/ | |
* Description: Idea of this plugin is to reserve administrator roles only for developers and sys admins. Removes authors and contributors. Gives Editors capability to add new editors and subcsribers. Hides Administrators from editors. | |
* Version: 1.0.0 | |
* Author: Onni Hakala | |
* Author URI: https://github.com/onnimonni | |
* License: MIT License | |
*/ |
#!/usr/bin/env bash | |
## | |
# Script for extracting single site from multisite | |
## | |
#SETUP | |
#static | |
wpdb="DATABASE NAME" |
<?php | |
/* | |
* Replace-uploads.php | |
* This replaces all accents from your uploads | |
* you can run this with wp-cli: $ wp eval-file replace-uploads.php | |
*/ | |
/** | |
* cd to right path before changes | |
*/ |
<?php | |
/** | |
* Plugin Name: Remove accents from files on upload | |
* Plugin URI: https://gist.github.com/onnimonni/d58bdcff44f8208a15c7 | |
* Description: Sanitize accents from Cyrillic, German, French, Polish, Spanish, Hungarian, Czech, Greek, Swedish during upload. Also fix OS-X NFD filenames. | |
* Version: 1.0 | |
* Author: Onni Hakala | |
* Author URI: http://github.com/onnimonni | |
* License: GPLv3 | |
*/ |
<?php | |
/** | |
* Sanitize accents from Cyrillic, German, French, Polish, Spanish, Hungarian, Czech, Greek, Swedish | |
* This replaces all accents from your uploads by renaming files and replacing attachment urls from database. | |
* This even removes NFD characters from OS-X by using Normalizer::normalize() | |
* This is one time script which you can use by running it with wp-cli: | |
* $ wp eval-file remove-accents-uploaded-files-and-database.php | |
*/ | |
// Get all uploads |
<?php | |
/** | |
* Custom error page rather than database connection error | |
* source: http://alexphelps.github.io/server-error-pages/ | |
* translated by: Onni Hakala / Geniem Oy | |
*/ | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 300'); // 5 minutes = 300 seconds |