Moved scripts

This commit is contained in:
2021-12-08 12:49:38 +01:00
parent ac44805a49
commit 260f31f8e7
6 changed files with 0 additions and 0 deletions

5
scripts/big_files.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
echo "Searching for files which are in \"$HOME\" and bigger then 100MB..."
find ~ -type f -size +100M -exec ls -lh {} \;

5
scripts/false_chown.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
echo "Searching for files which are in \"$HOME\" but don't belong to user \"$USER\"..."
sudo find "$HOME" ! -user "$USER"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
echo "Checking relevant home folders for duplicated files..."
fdupes -r "$HOME/Documents/" "$HOME/Downloads/" "$HOME/Images/" "$HOME/Desktop/" "$HOME/Music/" "$HOME/Pictures/" "$HOME/Videos"

5
scripts/java_versions.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
echo "Showing the installed Java versions..." &&
archlinux-java status

4
scripts/linux_kernel.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
echo "Linux-Kernel: $(uname -r)"

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# @see https://stackoverflow.com/questions/32408820/how-to-list-files-and-match-first-line-in-bash-script
# @see https://unix.stackexchange.com/questions/298590/using-find-non-recursively
# @see https://security.stackexchange.com/questions/129724/how-to-check-if-an-ssh-private-key-has-passphrase-or-not
find "$HOME/.ssh" -maxdepth 1 -type f -print0 | while IFS= read -r -d $'\0' file; do
if [[ $(head -n1 "$file") == "-----BEGIN OPENSSH PRIVATE KEY-----" ]]; then
echo "Test file: $file"
ssh-keygen -y -P "" -f "$file"
fi
done