feat: init

This commit is contained in:
Nick 2024-10-06 15:25:05 -05:00
commit c19ea940bd
320 changed files with 23845 additions and 0 deletions

27
profiles/user0/files/list.sh Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Function to list directories recursively and sort them alphabetically
list_directories() {
local parent_dir=$1
local output_file=$2
# Clear the output file if it exists
> "$output_file"
# Recursively find and list directories, then sort them and write to the output file
while IFS= read -r dir; do
echo "$dir" >> "$output_file"
done < <(find "$parent_dir" -type d | sort)
}
# Main script execution
if [ $# -eq 0 ]; then
echo "Usage: $0 parent_directory"
exit 1
fi
parent_directory=$1
output_file="nested_directories.txt"
list_directories "$parent_directory" "$output_file"
echo "Directory paths have been written to $output_file"

3
profiles/user0/files/loop.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done