This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xe | |
# This script takes as a parameter the name of the VM | |
# and creates a linked clone | |
# Ref: https://unix.stackexchange.com/a/33584 | |
# The scripts assumes that it runs from the same folder | |
# where the vm image is located and it coincides with the | |
# image name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download Visual Studio 2019 | |
2. Clone the Detours Git Repo https://github.com/microsoft/Detours | |
3. Open Command Prompt inside repo dir | |
4. “%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat” x64 <-- change arch | |
5. nmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pj_user_config() { | |
return [ | |
'redis_host' => 'changeme', | |
'redis_port' => 'changeme', | |
'redis_auth' => 'changeme', | |
'redis_db' => 'changeme' | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Place this file in the ROOT of wp-content/mu-plugins | |
# If the folder doesn't exist, create it. | |
$do_not_load_seo_framework_routes = [ | |
'/checkout/', | |
'/basket/', | |
'/?wc-ajax=update_order_review', | |
'/?wc-ajax=add_to_cart', | |
'/?wc-ajax=checkout', | |
'/?wc-ajax=get_refreshed_fragments' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Place this file in the ROOT of wp-content/mu-plugins | |
# If the folder doesn't exist, create it. | |
add_filter('option_active_plugins', 'custom_disable_plugins_1'); | |
function custom_disable_plugins_1($plugins) | |
{ | |
$remove_plugin = false; | |
$plugin_to_disable = "wordpress-seo/wp-seo.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Place this code in your theme's functions.php | |
# Tested with WooCommerce 5.3.0 and Yoast SEO 16.4 | |
if(function_exists('YoastSEO')) { | |
# Hook directly at the start of the init tree (important) | |
add_action('init', "maybe_remove_yoast_seo_module", 0); | |
function maybe_remove_yoast_seo_module() | |
{ |