Skip to content

Instantly share code, notes, and snippets.

View lamanrasmi's full-sized avatar

Team LamanRasmi lamanrasmi

View GitHub Profile
@lamanrasmi
lamanrasmi / reinstall_VPS_from_inside.txt
Created September 8, 2022 15:01 — forked from 4abhinavjain/reinstall_VPS_from_inside.txt
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# 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 ...
@lamanrasmi
lamanrasmi / gist:3cbbb4da22b1b88c4f7809288a8d559e
Created August 19, 2022 02:09 — forked from gmmedia/functions.php
Enable Gutenberg editor for WooCommerce
// 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
@lamanrasmi
lamanrasmi / fullbackup.php
Created May 11, 2022 17:09 — forked from wei/fullbackup.php
CPanel Full Backup Cron Script
<?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 *********