Skip to content

Instantly share code, notes, and snippets.

View regularguy01's full-sized avatar

The Regular Guy regularguy01

  • Murfreesboro
View GitHub Profile
#!/usr/bin/perl
# This file was written as an executable to be used in the auto report function
# of csf and lfd. By replacing $YOUR_API_KEY below with your abuseipdb api key,
# allows you to use this code to integrate your csf system with abuseipdb.com
# requires perl-JSON, perl-HTTP-Tiny
use strict;
use warnings;
use HTTP::Tiny;
use JSON;
@regularguy01
regularguy01 / sendy.php
Last active August 8, 2021 09:09 — forked from Pross/sendy.php
Add to mu-plugins folder, auto add every new user to a sendy list. Works with default WordPress and Woocommerce registrations.
<?php
/*
Original code by Pross found here https://gist.github.com/Pross/3ff9f68fea20dcdc8845919dc51de90d
//-------------------------------------------------------------------------------------//
Version 1.0.0
bdacus01 2020 found here https://gist.github.com/bdacus01/84171d9454e7ab4152be2edc65855c21
Improvements to code: added api key, firstname, and customer filter list.
If new account doesn't have the first_name filled in pull it from the registration POST.
user_register does not write out to the database until after registration is complete.
This code is for WC Customers. We are assuming they bought products or created an account.
---
#
# Let first talk about the different types in YAML
#
# It is important to understand the differences and terms.
# Not just for configuration splitting, but in general!
#
# Scalar values: String, Integer, Float, Boolean, Null
# Comments
# Collections: List (sequence), Dictionary (mapping) (important for splitting!)