Some useful scripts I use on a more-or-less daily basis.
The Readme below does NOT apply for nanofetch, my fast hardware listing
utility. nanofetch has its own README.md.
These scripts have been tested on bash and zsh. There is no guarantee that
they will be compatible other shells. I'm trying my best, thought, and
contributions are welcome!
As a friendly reminder: never run shell scripts without knowing what they do, particularly when you're root! I encourage you to look at them and to try to understand what's going on under the hood. I do my best at properly commenting the code :)
All the scripts in this repository are created assuming that the machine has the following GNU tools installed:
- coreutils
- sed
Other requirements:
- the
sudoutility - GNU
wget scripts.d/apk-extractrequiresunzipscripts.d/clipboard-convertrequiresgzip,xclipand barrierscripts.d/compress-mp4requiresffmpegscripts.d/exifrequires ImageMagick'smogrifyand Lutz Mueller'sexifscripts.d/gpg-keys-sizesrequiresgpgandawkscripts.d/mount-isorequiresfuseiso(unless run as root)scripts.d/fingerprintsrequires OpenSSH'sssh-keygenscripts.d/yt-*requiresyoutube-dl
The scripts.d directory contains multiple files, each defining one (or more)
shell functions. In order to load these functions in the user's environment,
add the following code snippet to the user's .bashrc:
# Source the different functions contained in scripts.d
# Update $SCRIPTS_DIR according to the path where the scripts.d folder is.
#
SCRIPTS_DIR=~/.local/bin/scripts.d
for fn in `ls $SCRIPTS_DIR/scripts.d/`; do
. $SCRIPTS_DIR/scripts.d/$fn
done
unset SCRIPTS_DIR
This repo's content is released under the BSD 3-clauses licenses.
Read the LICENSE file for more infos.