This file contains 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/sh | |
AMOUNT=10 | |
WHAT=paras | |
START=true | |
while getopts ":n:wpbls" opt; do | |
case $opt in | |
n) | |
AMOUNT=$OPTARG |
This file contains 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
## NOTE! this works for me but has recieved very limited testing! | |
## Enable auto updates for GITEA: | |
# shell script to check github repo for "latest" tag and compare to current running gitea version | |
# assumes systemd is in use to manage gitea service | |
# assumes gitea binary file lives at: /usr/local/bin/gitea | |
# assumes Ubuntu 18.04 is in use (but should work on any debian / apt system) | |
# assumes your local gitea api instance is reachable at: "http://192.168.4.22:3000/api/v1/version" | |
# assumes your ok with downloading the latest binary from github without any validation | |
# |
This file contains 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 | |
# Script for blocking IPs which have been reported to www.badips.com | |
# via ipsets. | |
# | |
# - THIS SCRIPT DOES NOT BLOCK ANYTHING - | |
# This script only updates ipsets with applicable data from | |
# badips.com. Actually blocking the ips in that ipset is left | |
# up to the user (so that you may do so however you prefer). | |
# | |
# Additionally, this script does not persist the ipsets through |