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
#!/usr/bin/env bash | |
# Author: Danijel Milosevic | |
# No warranty, use at your own risk. | |
# How many snapshots to keep before starting to delete the old ones | |
SNAPSHOT_COUNT=15 | |
# A list of absolute paths to backup. | |
INCLUDE_PATHS=("$HOME/Desktop/RSYNC/F1/") | |
# Overwrite if an arg was given | |
[ -z "$1" ] || INCLUDE_PATHS=$1 |
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
# Usage: nmap {OPTIONS} {TARGET_IP} | nmap2csv | |
nmap2csv (){ | |
# License: GPLv2 | |
# Author: Danijel M. | |
# Brief help prompt | |
if [[ $1 == "-h" || $1 == "--help" ]]; then | |
printf "\e[32;1m Usage: nmap {OPTIONS} {TARGET_IP} | nmap2csv\e[0m \n" | |
return 0 | |
fi |