Skip to content

Instantly share code, notes, and snippets.

View ItsMeRomian's full-sized avatar
:octocat:

Romian Tairovski ItsMeRomian

:octocat:
View GitHub Profile
@ItsMeRomian
ItsMeRomian / Fail2Ban-Cloudflare-NginxProxyManager.md
Created April 12, 2026 17:48
Fail2Ban Cloudflare NginxProxyManager setup

Setup for running fail2ban on machine with npm in a docker container to ban ips in cloudflare

1. Setup NPM to read real IP's

Go into the nginx folder of the NPM docker volume and add/customize these files.

/nginx/custom/cloudflare These do not update frequently but you could make a script to query https://www.cloudflare.com/ips-v4/ and v6

# - IPv4
set_real_ip_from 103.21.244.0/22;
@ItsMeRomian
ItsMeRomian / icloud-cleaner.sh
Created February 22, 2023 19:25
Clean your iCloud Photos with this bash script.
#!/bin/bash
#######
# This bash script makes a top 10 vlc playlist of the biggest
# files in your iCloud drive. From VLC you can delete these videos
# if you want. The script does not delete anything by itself.
#######
# Replace username with your username