Skip to content

Instantly share code, notes, and snippets.

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

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 / 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(){
@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
curl https://getcaddy.com | bash -s tls.dns.cloudflare
export CLOUDFLARE_EMAIL=<youremail>
export CLOUDFLARE_API_KEY=<CLOUDFLAREAPIKEY>
@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
*/
/*
@dfinnema
dfinnema / functions.php
Last active February 18, 2020 11:08
Flatsome UX Builder Addon - Scroll Down
/**
*
* Flatsome UX Builder Addon
*
* adds a scroll to mouse animation to parts of the page
*
* Dependent files (in your child theme):
* /css/scroll.min.css
*
* Parent Theme Supported
@dfinnema
dfinnema / functions.php
Created December 12, 2017 22:59
xt-facebook-events - Extension No Event Text
<?php
/**
* Extension for xt-facebook-events
*
* adds custom text when no events are loaded
*
*/
function dfc_shortcode_fb_events_hook_shortcode( $atts_o ) {
@dfinnema
dfinnema / ca-update.txt
Created August 27, 2018 01:55
Local by Flywheel cURL SSL Fix
/**
* 1. Right click on the site and choose "Open Site SSH"
* 2. Run the command below.
*/
apt-get update && apt-get install ca-certificates
@dfinnema
dfinnema / unms_cipher.sh
Created February 16, 2019 07:36
Add weaker ciphers to UNMS to ensure older devices can be managed
# Copy the current NGINX conf file from the docker container
# docker cp unms-nginx:/etc/nginx/conf.d/combined.conf ~/combined.conf
#
# Add the following ciphers to combine.conf
# AES256-SHA256
# AES256-SHA
#
# Find the line looking something like:
# ssl_ciphers EECDH:RSA:HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!3DES:!SEED:!IDEA:!MD5:!PSK:!RC4;
#