THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
<?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')"); |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:
Set my args as follows:
const run = (async () => {
const args = [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',
# See official docs at https://dash.plotly.com | |
# pip install dash pandas | |
from dash import Dash, dcc, html, Input, Output | |
import plotly.express as px | |
import pandas as pd | |
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv') |
function shlex(str) { | |
var args = str.split(" "); | |
var out = []; | |
var lookForClose = -1; | |
var quoteOpen = false; | |
for (var x in args) { | |
if (args.hasOwnProperty(x)) { | |
var arg = args[x]; | |
var escSeq = false; | |
for (var y in arg) { |
<?php | |
/** | |
* Filter to add enablejsapi to Elementor youtube video | |
*/ | |
function add_youtube_jsapi($iframe_html, $video_url, $frame_attributes) { | |
if(strpos($video_url, 'youtube') !== false) { | |
$src = esc_attr($frame_attributes['src']); | |
$new_src = esc_attr(add_query_arg(array('enablejsapi' => '1'), $frame_attributes['src'])); | |
$iframe_html = str_replace($src, $new_src, $iframe_html); | |
} |
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
http://forked.yannick.io/ |
#!/usr/bin/env python | |
""" Stack Overflow XML 2 SQL | |
The following is a custom made XML 2 SQL converter for Stack Overflow data. | |
Latest Stack Overflow Data: August 2012 | |
Call Examples: |
<?php | |
/** | |
* Customer new account email | |
* | |
* This template has been overriden to change account creation text. | |
* | |
* @see https://docs.woocommerce.com/document/template-structure/ | |
* @author WooThemes | |
* @package WooCommerce/Templates/Emails | |
* @version 1.6.4 |