Skip to content

Instantly share code, notes, and snippets.

View payrequestio's full-sized avatar
💸
No-Code Payment Platform

Geert Jan Sloos payrequestio

💸
No-Code Payment Platform
View GitHub Profile
# Loop through all user directories in /home
for user_directory in /home/*; do
if [[ -d "$user_directory" ]]; then
# Loop through all domain directories in the user directory
for domain_directory in "$user_directory"/domains/*; do
if [[ -d "$domain_directory" ]]; then
# Check if the public_html directory exists
public_html="$domain_directory/public_html"
if [[ -d "$public_html" ]]; then
# Check if the public_html directory contains a Magento 2 installation
/**
* Kolab core library
*
* This file contains Elastic skin styles for various Kolab plugins.
*
* @author Aleksander Machniak <machniak@kolabsys.com>
*
* Copyright (C) 2012-2018, Kolab Systems AG <contact@kolabsys.com>
*
* This program is free software: you can redistribute it and/or modify
@payrequestio
payrequestio / csf.conf
Created January 12, 2023 21:43
CSF Best Configuration
###############################################################################
# SECTION:Initial Settings
###############################################################################
# Testing flag - enables a CRON job that clears iptables incase of
# configuration problems when you start csf. This should be enabled until you
# are sure that the firewall works - i.e. incase you get locked out of your
# server! Then do remember to set it to 0 and restart csf when you're sure
# everything is OK. Stopping csf will remove the line from /etc/crontab
#
# lfd will not start while this is enabled
@payrequestio
payrequestio / Whitelist-Netherlands-IP-Ranges
Last active March 13, 2024 21:53
CSF Whitelist Ziggo & KPN IP Ranges
White Dutch ISPs
## KPN IP Ranges
csf -a 77.160.0.0/22 && csf -a 86.80.0.0/12 && csf -a 84.80.0.0/13 && csf -a 92.64.0.0/13 && csf -a 188.200.0.0/13 && csf -a 81.204.0.0/14 && csf -a 82.168.0.0/14 && csf -a 80.60.0.0/15 && csf -a 195.240.0.0/15 && csf -a 46.144.0.0/15 && csf -a 31.160.0.0/15 && csf -a 193.172.0.0/15 && csf -a 134.222.0.0/16 && csf -a 194.151.0.0/16
## Ziggo IP Ranges
csf -a 213.75.0.0/17 && csf -a 213.125.0.0/18 && csf -a 94.209.0.0/16 && csf -a 94.212.0.0/16 && csf -a 94.215.0.0/17
## Vodafone IP Ranges
csf -a 92.108.0.0/14 && csf -a 92.112.0.0/13