Skip to content

Instantly share code, notes, and snippets.

@fabiomsnunes
fabiomsnunes / uninstallRoundCloud.sh
Created January 20, 2023 11:28
Script to remove/uninstall RunCloud from your server
# What a surprise, there is no official Runcloud uninstallation script for your server,
# you can see it at https://runcloud.io/docs/guide/server-management/delete-server
# they say "To completely uninstall RunCloud, you must reformat your server. We do not have an uninstallation script."
#This script may help, no need to describe every step the echos say it all
#!/bin/bash
echo "Removing runcloud user from system"
sudo userdel -r runcloud
@fabiomsnunes
fabiomsnunes / woocommerce-show-price-without-tax-on-price-suffix.php
Created July 22, 2022 13:32
WooCommerce - Show price without tax on price suffix
function show_price_without_tax($price_html, $product)
{
if (is_product() && wc_prices_include_tax())
return sprintf(__('%1$s', 'woocommerce'), wc_price(wc_get_price_excluding_tax($product), array('ex_tax_label' => true)));
return $price_html;
}
add_filter('woocommerce_get_price_suffix', 'show_price_without_tax', 999, 2);
jQuery(function($) {
$( document ).ready(function() {
if ($('.animatedCounter').length) {
$(window).scroll(testScroll);
}
});
var viewed = false;