Skip to content

Instantly share code, notes, and snippets.

@dfinnema
dfinnema / dfc-worker-hide.php
Last active August 5, 2024 02:42
Hide the ManageWP Worker Plugin from your clients. Upload this file in your wp-content/mu-plugins/
<?php
/*
Plugin Name: Worker Hide
Plugin URI: https://itchef.nz
Description: Hides the worker plugin
Author: IT Chef
Author URI: https://itchef.nz
*/
/*
curl https://getcaddy.com | bash -s tls.dns.cloudflare
export CLOUDFLARE_EMAIL=<youremail>
export CLOUDFLARE_API_KEY=<CLOUDFLAREAPIKEY>
@dfinnema
dfinnema / class-wc-xr-line-item-manager.php
Last active February 17, 2020 14:01
WooCommerce Xero (v1.7.3) + Stripe Fees (chart of account account manually set to 766)
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
class WC_XR_Line_Item_Manager {
/**
* @var WC_XR_Settings
@dfinnema
dfinnema / salts.php
Created February 24, 2017 09:15
Wordpress Salt Updater for ManageWP Snipets (based on https://wordpress.org/plugins/salt-shaker/)
<?php
$test = new SalterCore();
$test->shuffleSalts();
class SalterCore{
public $salts_array, $new_salts;
public function shuffleSalts(){

Keybase proof

I hereby claim:

  • I am dfinnema on github.
  • I am dfinnema (https://keybase.io/dfinnema) on keybase.
  • I have a public key whose fingerprint is 13B7 C955 4C87 2086 8822 A679 35AC 407B 8B3C 4AA0

To claim this, I am signing this object:

@dfinnema
dfinnema / gist:0ee51aba99e951d57805
Created January 3, 2015 07:51
OneName Verification
Verifying that +dfinnema is my openname (Bitcoin username). https://onename.io/dfinnema