Skip to content

Instantly share code, notes, and snippets.

View amirhmoradi's full-sized avatar
🛥️
Working from boat

Amir Moradi amirhmoradi

🛥️
Working from boat
View GitHub Profile
@amirhmoradi
amirhmoradi / perfex_crm_v3.2.1_hooks_list.txt
Created March 4, 2025 08:13
Updated Full Perfex Hook List - For Perfex CRM Developers - Perfex CRM v3.2.1
# Updated Full Perfex Hook List - For Perfex CRM Developers - Perfex CRM v3.2.1
## File: <perfexcrm_root>/application/controllers/Authentication.php:
10: hooks()->do_action('clients_authentication_constructor', $this);
61: hooks()->do_action('after_contact_login');
217: hooks()->do_action('after_client_register', $clientid);
239: hooks()->do_action('after_client_register_logged_in', $clientid);
307: hooks()->do_action('before_user_reset_password', [
320: hooks()->do_action('after_user_reset_password', [
341: hooks()->do_action('after_client_logout');
@MaximilianKohler
MaximilianKohler / How to send bulk-mass email.md
Last active February 5, 2025 06:53
How to send bulk/mass email with Amazon SES. 10,000-100,000 one-time emails, or thousands per day. Set up your own web server for newsletters. Mailchimp alternative

How to send bulk/mass email

The short answer is that you need to set up your own web server (Hetzner, AWS, DigitalOcean, etc.), install email software on it (Listmonk, Mailwizz, Mautic), and use an SMTP like Amazon SES. It's not that hard. If you're on Windows, Putty and FileZilla will be your main programs to access your server. When using CSV files for your contacts, you want to use UTF-8 format.

There are some detailed guides below for Sendy and Listmonk. But even if you have/want to hire someone to set it up for you, they should be able to do so for under $60 (check Fiverr). So it's still the most affordable option.

When I searched for this I had a very hard time finding a right answer because all the results were SEO blogs advertising their newsletter services (Mailchimp, Convertkit, etc.), which is not the same thing.

My use case is that I have a

@lvl99
lvl99 / woocommerce-eu-vat-rates.csv
Last active March 16, 2025 10:18
A CSV table of the VAT rates for EU members. This was made using the table of Standard Rates from this document: https://ec.europa.eu/taxation_customs/sites/taxation/files/resources/documents/taxation/vat/how_vat_works/rates/vat_rates_en.pdf and the VAT abbreviations here: https://en.wikipedia.org/wiki/European_Union_value_added_tax#VAT_rates
Country Code State Code ZIP/Postcode City Rate % Tax Name Priority Compound Shipping Tax Class
AT * * * 20 USt 1 0 1
BE * * * 21 TVA 1 0 1
BG * * * 20 ДДС 1 0 1
CY * * * 19 ΦΠΑ 1 0 1
CZ * * * 21 DPH 1 0 1
DE * * * 19 MwSt 1 0 1
DK * * * 25 moms 1 0 1
EE * * * 22 km 1 0 1
ES * * * 21 IVA 1 0 1
@jonatanblue
jonatanblue / docker_py_to_docker.md
Last active July 18, 2019 12:15
Resolve docker-py older version naming conflict

Problem

When running docker-compose I get this error:

docker-compose --version
> ERROR: Dependency conflict: an older version of the 'docker-py' package is polluting the namespace. Run the following command to remedy the issue:
> pip uninstall docker docker-py; pip install docker
@johnbillion
johnbillion / gist:4fa3c4228a8bb53cc71d
Last active February 18, 2025 13:06
WordPress Flow
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)