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
sudo
utility - GNU
wget
scripts.d/apk-extract
requiresunzip
scripts.d/clipboard-convert
requiresgzip
,xclip
and barrierscripts.d/compress-mp4
requiresffmpeg
scripts.d/exif
requires ImageMagick'smogrify
and Lutz Mueller'sexif
scripts.d/gpg-keys-sizes
requiresgpg
andawk
scripts.d/mount-iso
requiresfuseiso
(unless run as root)scripts.d/fingerprints
requires OpenSSH'sssh-keygen
scripts.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.