Skip to content

Instantly share code, notes, and snippets.

View i5heu's full-sized avatar
🌈
Keep coding!

Mia Heidenstedt i5heu

🌈
Keep coding!
View GitHub Profile
@i5heu
i5heu / README.md
Last active June 16, 2026 11:32
Automated anti-spam script for Mastodon Docker Compose instances. Securely syncs disposable email blocklists using tootctl. Hardened against injection and optimized with xargs batching to safely handle large amounts of domains without errors.

Mastodon Disposable Email Blocklist Sync

A Bash script to automatically stop spam signups on Mastodon Docker Compose instances by blocking temporary and throwaway email domains.

It automates downloading crowdsourced blocklists and imports them safely using the native tootctl email-domain-blocks add command.

⚡ Features

  • Fixes "Argument list too long": Uses xargs to batch imports (250 domains at a time). This prevents tootctl or Linux ARG_MAX errors when handling large lists of 60,000+ domains.
  • Security Hardened: Uses strict alphanumeric regex validation (grep -E) to filter incoming data, preventing command injection or shell exploits from untrusted files.
@i5heu
i5heu / A-README.md
Last active September 26, 2025 12:26 — forked from penbuvt/obs-chat-overlay.css
OBS chat CSS

OBS Chat CSS — README (Twitch Embed + YouTube)

Minimal, transparent CSS for embedding Twitch and YouTube live chat as on‑stream overlays in OBS Studio.

Included files:

  • obs-chat-overlay.css — on‑stream overlay (transparent, bold, high contrast)
  • obs-chat-window.css — compact styling for small overlays/windows
  • X-LICENSE — BSD Zero Clause (0BSD)

@i5heu
i5heu / berlin_colocation.md
Created March 29, 2025 09:24
Cheapest Colocation Options (4U) in Berlin Area

ALL INFORMATION WITHOUT WARANTY 2025 BY AI

Great, I’ll look into colocation providers in Berlin (or nearby) that can host a 4HE server with at least 1 GBit/s bandwidth, good peering to O2/Telefonica, and minimal extras. I’ll compare options based on monthly cost, bandwidth, IPv4/IPv6 support, power allowance (including your 600W peak), and whether you can physically visit the facility.

I’ll include a table to make comparison easy and will highlight any notable differences in features or pricing.

Cheapest Colocation Options (4U) in Berlin Area

The table below compares several low-cost colocation providers in Berlin (and vicinity) that support a 4U (4HE) server. All options include at least a 1 Gbit/s network port and meet the basic requirements (single PSU feed, ~350 W average / 600 W peak power, at least 1× IPv4 and 1× IPv6). Prices are ranked from lowest to higher monthly cost, and notes are provided about peering with O2/Telefonica (usually via BCIX/DE-CIX) and on-site access policies:

# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ẞ (or use "ss" as alternative)
# If the above line is not correctly displayed, fix your editor first!
general {
output_format = "i3bar"
#!/bin/bash
# Update packages and upgrade the system
apt update
apt full-upgrade -y
# Check if microk8s is already installed and install it if not
if snap list microk8s &> /dev/null; then
echo "microk8s is already installed."
else
@i5heu
i5heu / gist:f2f4b63930ed039941b93b8783c54e70
Created April 28, 2024 19:54
FFmpeg Bash to turn a 5.1 mkv into a 2.1 mkv. It extracts the original 5.1 audio, creates a stereo downmix, and adds a compressed & enhanced 2.1 track for improved dialogue clarity. Ideal for enhancing audio intelligibility in media files. Will also give the new mkv the name of the folder the original mkv is in.
#!/bin/bash
# Check if the input file is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input.mkv>"
exit 1
fi
input="$1"
# Ensure the input path is absolute to avoid errors in path handling
apt update && apt full-upgrade -y && apt install -y nginx
from https://www.matuzo.at/blog/html-boilerplate/
[Unit]
Description=IPFS daemon
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target
@i5heu
i5heu / ipfs-cluster-service
Last active May 13, 2020 06:33
ipfs-node.sh
[Unit]
Description=IPFS main cluster
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/home/ipfs/ipfs-cluster-follow/ipfs-cluster-follow main-cluster run
Restart=on-failure
[Install]
WantedBy=multi-user.target