This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
service__mariadb: | |
image: arm64v8/mariadb:latest | |
volumes: | |
- ./data/mariadb:/var/lib/mysql | |
restart: unless-stopped | |
environment: | |
MARIADB_ROOT_PASSWORD: <enter_your_value> | |
MYSQL_ROOT_PASSWORD: <enter_your_value> | |
MYSQL_DATABASE: <enter_your_value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example: curl -sk https://gist.githubusercontent.com/ramit-mitra/5b9c93f8354f2a41ac94f09e3a38c517/raw/report_ips_to_abuseipdb.sh | bash | |
url="https://raw.githubusercontent.com/ramit-mitra/blocklist-ipsets/main/rottenIPs.json" | |
echo "-------------------------" | |
echo "Reading Banlist IPs" | |
blocked_ips=$(curl -s $url | jq -r '.[]') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example: curl -sk https://gist.githubusercontent.com/ramit-mitra/f72b16b34099f85b3423bd32f63930c3/raw/ufw_block_banned_ips.sh | bash | |
url="https://raw.githubusercontent.com/ramit-mitra/blocklist-ipsets/main/rottenIPs.json" | |
echo "-------------------------" | |
echo "Reading Banlist IPs..." | |
blocked_ips=$(curl -s $url | jq -r '.[]') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example: curl -s https://gist.githubusercontent.com/ramit-mitra/f5e9c4f9adc4a155ebcce2608bc50f39/raw/block_banned_ips.sh | bash | |
url=https://raw.githubusercontent.com/ramit-mitra/blocklist-ipsets/main/rottenIPs.json | |
jail_names=($(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g')) | |
blocked_ips=$(curl -s $url | jq -r '.[]') | |
echo "-------------------------" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Personal cron tasks script file | |
# General housekeeping stuff | |
# Example usage: | |
# curl -s https://gist.githubusercontent.com/ramit-mitra/32f3844608c2af97fc8a41bcc1f48ee5/raw/cron_tasks.sh | bash | |
hour=$(date +"%H") | |
minute=$(date +"%M") |