Skip to content

Instantly share code, notes, and snippets.

@vosechu
vosechu / ALLPAIRS-params.js
Last active January 17, 2021 20:54
Gunbot 3.3.2 config
//-----------------------------------------------
// Instructions for this file
//-----------------------------------------------
// This file will provide the basis for all the more specific files. All the
// options set in here will be used by `config.js` files unless they're
// overridden in that file.
//
// If you want to affect all coins at once, edit this file; you don't need to
// reboot the bots though, they'll see that the config changed.
//-----------------------------------------------
@damiencarbery
damiencarbery / promote-free-shipping.php
Last active November 29, 2021 18:40
WooCommerce: Promote Free Shipping by listing how much to add to cart to avail of it.
<?php
/*
Plugin Name: Promote Free Shipping (WooCommerce)
Plugin URI: http://www.damiencarbery.com
Description: Encourage customer to add more items to the cart to avail of free shipping.
Author: Damien Carbery
Version: 0.3
*/
class PromoteFreeShipping {
@mikaelz
mikaelz / delete-all-woocommerce-products.php
Last active November 22, 2024 14:08
Remove all WooCommerce products from database via SQL
<?php
require dirname(__FILE__).'/wp-blog-header.php';
$wpdb->query("DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%')");
$wpdb->query("DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'");
$wpdb->query("DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy)");
$wpdb->query("DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))");
$wpdb->query("DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))");
$wpdb->query("DELETE FROM wp_posts WHERE post_type IN ('product','product_variation')");
@tranzium
tranzium / autoview-syntax.txt
Last active November 13, 2023 19:33
TradingView can now become automated trading.
---------- Usage
The syntax created by these parameters is placed in an alert's description on TradingView
to be utilized by Autoview, a Chrome Extension.
Autoview: https://chrome.google.com/webstore/detail/autoview/okdhadoplaoehmeldlpakhpekjcpljmb
> Website: https://autoview.with.pink
> Help: https://use.autoview.with.pink
> Discord: https://discordapp.com/invite/BFz8VPn
TradingView: https://tradingview.go2cloud.org/aff_c?offer_id=2&aff_id=1187