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
#!/usr/bin/env bash | |
set -e | |
PATTERN=$1 | |
COUNT=0 | |
for RULE in $(sudo ufw status numbered | (grep $PATTERN | awk -F"[][]" '{print $2}')); do | |
sudo ufw --force delete $((RULE-COUNT)) | |
((COUNT=COUNT+1)) | |
done |
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
#!/usr/bin/env bash | |
BACKUP_PATH=$1 | |
if [ -z "$BACKUP_PATH" ]; then | |
echo "Please provide path to Time Machine backup bundle." | |
exit 1 | |
fi | |
echo "More info at https://jd-powered.net/notes/fixing-your-time-machine-backup/" |
OlderNewer