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
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 * * * 20 km 1 0 1
EL * * * 24 ΦΠΑ 1 0 1
@amirhmoradi
amirhmoradi / How to send bulk-mass email.md
Created November 2, 2023 22:46 — forked from MaximilianKohler/How to send bulk-mass email.md
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 an 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 Google form collecting tens of thousands of applications. And I need to re

@amirhmoradi
amirhmoradi / mta-sts.js
Created August 28, 2023 07:41 — forked from Tugzrida/mta-sts.js
MTA-STS Cloudflare worker
// This worker is designed to be able to neatly handle MTA-STS policies for multiple domains.
// Make a new worker with this script and add your domains to the stsPolicies dict like the example.
// Add a DNS AAAA record for mta-sts.yourdomain.com pointing to 100:: and set to proxied,
// then add a workers route for mta-sts.yourdomain.com/* pointing to this worker.
// You'll still need to manually add the appropriate _mta-sts.yourdomain.com TXT record to enable the policy,
// and the _smtp._tls.yourdomain.com TXT record for reporting.
const stsPolicies = {