chore: removed other users and systems

This commit is contained in:
Nick 2025-06-26 02:15:04 -05:00
parent 2b4ad99e25
commit 233cab07dd
135 changed files with 216 additions and 2462 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"

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"

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

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
cp /etc/nixos/configuration.nix /etc/nixos/configuration.nix.backup
sed -i '/services\.printing\.enable = true;/a\ nix.settings.experimental-features = ["nix-command" "flakes"];\n services.openssh.enable = true;' /etc/nixos/configuration.nix
sed -i '/thunderbird/a\ git\n vscode\n tomb' /etc/nixos/configuration.nix
swapoff -a
echo "/etc/nixos/configuration.nix updated successfully."

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
mkdir -p /var/lib/sops-nix
mkdir -p /home/nick/.config/sops/age
cp /run/media/nick/crypt/key.txt /home/nick/.config/sops/age/keys.txt
cp /run/media/nick/crypt/key.txt /var/lib/sops-nix/key.txt
swapon -a
echo "SOPS keys transferred successfully."