Skip to content

Instantly share code, notes, and snippets.

View Mixaill's full-sized avatar

Mikhail Paulyshka Mixaill

View GitHub Profile
https://github.com/AMD-BC-250/documentation/blob/main/README.md
#
# Mastodon Tor Exit Nodes Block
#
# V4 (2024.02.19)
#
# * v1: initial version
# * v2: fix compatibility with HAProxy (set MASTODON_CONVERT_IPV4toV6 to true)
# * v3: minor cleanup
# * v4: added support for the IPv6 exit nodes, change default settings
cd /home/mastodon/live/
mkdir -p ./~temp
wget --no-cache https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf -O ./~temp/email.list
domains="$(cat ./~temp/email.list)"
domains="${domains//$'\n'/ }"
RAILS_ENV=production bin/tootctl email-domain-blocks add $domains
#!/usr/bin/env bash
#
# Mastodon update script
# v3 (2024.02.18)
#
# Changelog
# * v1 - initial version
# * v2 - added mastodon-bird-ui
# * v3 - added import of temporary email domains