Skip to content

Instantly share code, notes, and snippets.

test status

Jesse Aldridge JesseAldridge

test status
View GitHub Profile

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 = [
harperreed /
Created Feb 17, 2018
EMFIT QS Sleep tracker location API


There is a functional http server running on the device that can be crawled for realtime data. It runs on port 80 and uses plain http.

You will need to know the IP address if your emfit device.


For demoing / testing with a web browser there is an auto-refreshing page that contains only HR and RR values, it’s name is shortdvm.htm

EdenK / elementor-video-youtube-enablejsapi.php
Last active Sep 4, 2019
Filter to add enablejsapi to Elementor youtube video
View elementor-video-youtube-enablejsapi.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);
devinsays / customer-new-account.php
Created Oct 3, 2017
Sends new WooCommerce customers an account email that with their email address as a login rather than a username.
View customer-new-account.php
* Customer new account email
* This template has been overriden to change account creation text.
* @see
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.6.4
codediodeio / database.rules.json
Last active Dec 3, 2020
Common Database Rules for Firebase
View database.rules.json
// No Security
"rules": {
".read": true,
".write": true
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World')
Treer / gist:c7d7e33289b725dfb9d07718f6153a9d
Created Dec 11, 2016
Find most active fork of a github project
mikaelz / delete-all-woocommerce-products.php
Last active Nov 28, 2020
Remove all WooCommerce products from database via SQL
View delete-all-woocommerce-products.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')");
pch /
Last active Feb 18, 2019
How to install Unison on Mac OS El Capitan & Vagrant

How to install Unison on Mac OS El Capitan & Vagrant - for Docker Sync

You can install Unison on the Mac via homebrew (brew install unison), but it's very likely that it won't work properly, resulting in errors like:

Unison failed: Uncaught exception Failure("input_value: bad bigarray kind")
Fatal error: Lost connection with the server
lovingawareness / Makefile
Last active Nov 28, 2018
Periodic Screenshots (every 10 seconds) on Mac OS X
View Makefile
@echo "Please use \`make <target>' where <target> is one of"
@echo " screencap To start recording screencaps and clean up yesterday's captures."
@echo " cleanyesterday Just delete yesterday's captures."
@echo " captoday Just start recording screencaps for today."
You can’t perform that action at this time.