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 | |
// PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. | |
// Cron Job Command: /usr/local/bin/php /home/<cpanel-username>/fullbackup.php | |
// This script contains passwords. It is important to keep access to this file secure (we would ask you to place it in your home directory, not public_html) | |
// You need create 'backups' folder in your home directory ( or any other folder that you would like to store your backups in ). | |
// ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED ********* |
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
// Enable Gutenberg editor for WooCommerce | |
function j0e_activate_gutenberg_product( $can_edit, $post_type ) { | |
if ( $post_type == 'product' ) { | |
$can_edit = true; | |
} | |
return $can_edit; | |
} | |
add_filter( 'use_block_editor_for_post_type', 'j0e_activate_gutenberg_product', 10, 2 ); | |
// Enable taxonomy fields for Woocommerce with Gutenberg on |
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
# should works on any cloud-init enabled hypervisor (openstack.. ) | |
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64 | |
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB | |
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root' | |
sudo -i | |
# make sure we are on the highest kernel, so we can delete all the others ... |