Skip to content

Instantly share code, notes, and snippets.

@katoen
katoen / (de)activate-plugins-on-domain.php
Last active May 23, 2022 20:21 — forked from JayHoltslander/deactivate-plugins-on-domain.php
Deactivate or activate certain Wordpress plugins when running on the development/staging domain
<?php
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$plugins_staging = array(
'wp-reroute-email/wp-reroute-email.php'
);
$plugins_prod= array(
'google-site-kit/google-site-kit.php',
'lite-speed-cache/lite-speed-cache.php',
'microsoft-clarity/clarity.php'
);
@katoen
katoen / export.js
Last active September 23, 2022 18:58 — forked from 0x8801/export.js
Export Wallet by BudgetBakers records to JSON
// Source for Jake Archibald's idb https://github.com/jakearchibald/idb/blob/v3.0.2/build/idb.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.idb = {}));
}(this, function (exports) { 'use strict';
function toArray(arr) {
return Array.prototype.slice.call(arr);
}