- Feb 19, 2025
-
-
Cédric Marie authored
Add an option to exclude images (.jpg, .jpeg and .png). Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jan 28, 2025
-
-
Cédric Marie authored
When decryption fails (for file.tar.xz.enc), openssl keeps an incorrect output file (file.tar.xz). It must be removed. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Nov 30, 2024
-
-
Cédric Marie authored
Extend the usage bar to the whole width of the terminal window. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Oct 20, 2024
-
-
Cédric Marie authored
Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jul 01, 2024
-
-
Cédric Marie authored
This script has been rewritten in Rust (Unaltered project). There were still some issues with filenames containing special characters, which is uneasy to handle with shell scripting. The Rust version is also of course must faster. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Mar 02, 2024
-
-
Cédric Marie authored
When calling grep on the checksum file, to find the line matching the filename, square brackets must be escaped in the filename. In update_checksum, check_removed_files and check_added_files, call grep directly on the checksum file, instead of calling cat | grep. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Both check_removed_files and check_added_files have no parameters. Remove the unused arguments. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Feb 14, 2024
-
-
Cédric Marie authored
Create a new script to fix MD5 signature missing in FLAC files. For example, the FLAC files provided by Qobuz used to have a MD5 signature, but currently they don't have one anymore. To add the MD5 signature, it is necessary to reencode the files. The operation could be done with a single flac command, but I'd rather split it into two steps (decode to .wav and then reencode to .flac). Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jan 13, 2024
-
-
Cédric Marie authored
Explicitly print the command that will be executed. Use colors to highlight the different steps, which is particularly useful when myrsync is called several times from a script, to synchronize several directories. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
In addition to lsblk command, also call udevadm on devices to retrieve the speed of USB devices. In the first place, I wanted to print the USB version (USB 2.0, USB 3.0, USB 3.1...), but the names have changed so many times in the specifications that it is clearer to just print the speed itself. Moreover, the speed information is not concerning only USB devices. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
These warnings are always followed by an action, so the trace of the action is enough to understand what's happening. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Describe the purpose of the project a little bit more, in the README file, and explain why CC0 license was chosen. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Nov 12, 2023
-
-
Cédric Marie authored
Replace "http" with "https" in the CC0 license URL. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Oct 28, 2023
-
-
Cédric Marie authored
Display the model name (MODEL) for each device. Add a blank line between each device, to make it easier to match the model name with the following partitions. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Oct 03, 2023
-
-
Cédric Marie authored
Using underscores instead of a grey background, for the unused space in the "usage bar", makes it easier to see the usage. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Highlight the size of the partition (FSSIZE) and the space usage percentage (FSUSE%), because these are the two values usually searched for, at a glance. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jul 10, 2023
-
-
Cédric Marie authored
This script adds a prefix or suffix to several file names at once. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Sometimes a file may have been moved from a directory to another one, or just renamed. It results in a file being removed and another one being added. Print the checksum of removed and added files, so that we can compare and verify that the checksum has not changed in that case. The script itself cannot detect that a file was moved or renamed, this would involve too much processing. NB: If the file was moved to a new directory, the checksum will not be printed. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
If all files have been removed, and the checksum file is now empty, delete it. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
The message was "done" because it used to be a "create" command. Now with "update" command, it makes more sense to print "Created the checksum file". Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Remove some messages that are too verbose, and not strictly necessary to understand what happened. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jun 20, 2023
-
-
Cédric Marie authored
Below each partition, add a line with a bar to graphically represent the percentage of the space usage. Don't display it if the partition is /boot or /boot/efi, because we usually don't really need to monitor the usage of these partitions. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Use "expr match" instead of "echo | tr | cut" to extract the removable and rotational values from the line. This slightly improves the execution time. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- May 30, 2023
-
-
Cédric Marie authored
Fedora distribution used to follow User Private Group (UPG) scheme, but it seems not to apply anymore. With Fedora 38 (and maybe earlier versions), the umask in a terminal is now 0022. Moreover, even when UPG scheme applied, the behaviours of the different applications were not consistent. The umask was 0002 in the terminal, but it was 0022 in XFCE Thunar (when creating a directory), in Firefox (when downloading a file) and in Emacs (when creating a file)... As a consequence, stop using UPG in mychmodro and mychmodrw, and don't give write access to the group. NB: Only these scripts are concerned. Continue not to override the default umask in bash init. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- May 16, 2023
-
-
Cédric Marie authored
The "create" command is renamed to "update", and is now able to update an existing checksum file, if the content of the directory has changed. If not already present, the checksum file is created like before. An update is done in the following cases: * If a file that is already listed in the checksum file was modified after the checksum file was created, then its checksum will be updated. (It is based on the last modification date.) * If a file that is listed in the checksum file is no longer present, then it will be removed from the checksum file. * If a file is not listed in the checksum file, then it will be added. NB: The "update" command doesn't check the checksums. A bad checksum will never be "fixed", unless the file was updated and requires its checksum to be computed again. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- May 07, 2023
-
-
Cédric Marie authored
When there is no ARTIST tag in FLAC files, we mistakenly believe this is a multi-artist album (because the ARTIST count is 0, which is different from 1). We must check that the ARTIST count is different from 0 and 1. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Ask the user to confirm before clearing all tags. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Add "no-comment" command to remove the comment tag in the first track. It will be removed in all tracks when the "clean" command is called. Add "no-license" command to remove the license tag in the first track (supported only for FLAC files). It will be removed in all tracks when the "clean" command is called. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Comment and license tags are supported, but there was no command to set the license tag. Add this "license" command, at least for FLAC files. (There is no explicit license tag in ID3 format, only a copyright tag.) The license is set in the first track, and will be set in all tracks when the "clean" command is called. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- May 03, 2023
-
-
Cédric Marie authored
Simplify the script by using a single function (process_dir) for all commands. Most of the checks (to verify whether the checksum file is up-to-date or not) are necessary in all cases, even for the "create" command, which does not overwrite the checksum file anymore if it is already present. In case of directory content mismatch, don't print the two lists, this is too much verbose. When printing information, use bold green color only if an action has been done on checksums ("done" when created, "OK" when checked). Otherwise, when just mentioning that the directory content matches ("All files are listed"), use green color (not bold) instead. Remove unused option_verbose variable. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Set checksums.sha256 read-only just after its creation. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Add an alias to print the size of all elements in the current directory (directories and files) with "du -hs", and sort them in decreasing order. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Add a command to clear all tags, to make sure that any unexpected COMMENT or LICENSE tag, that might be present in the original file, will be removed. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
When cleaning files, the number of "saved" bytes is printed, because usually some metadata are removed (picture, comments...). But in some cases, when adding information, the size of files can increase, and a negative value of "saved" bytes is printed. Instead, we should just print the difference of size, and a negative value means that bytes are saved. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Apr 22, 2023
-
-
Cédric Marie authored
Add an option to disable all development related files. This is not a new feature, but a shortcut for existing --no-vcs --no-eide --no-build options. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Mar 02, 2023
-
-
Cédric Marie authored
Instead of referencing the command that is used (lsblk), use a more explicit name (mydrives) that matches the purpose of the script: providing information about HDD (hard disk drives) and SSD (solid-state drives). Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
Cédric Marie authored
Sometimes you just want to check that all checksums have been computed, but you don't need to really check them (It takes too much time and requires to read the entire files from the disk to compute the SHA256). With the new "list" command, the same verifications as with the "check" command will be performed, but the checksums are not checked in the end. These verifications consist in checking that the checksums.sha256 file: - is present, - is the more recent one, - lists the exact content of the directory. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jan 25, 2023
-
-
Cédric Marie authored
In myrmbg script, fix the support for spaces in paths by protecting all variables and arguments with double quotes. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-
- Jan 04, 2023
-
-
Cédric Marie authored
This script displays disk partitions with space usage, using 'lsblk' command, with specific options, to show total/used/available sizes (like 'df -h'), and add colors to easily make the difference between HDD and SSD. Since the information is not correct for removable devices, they are displayed using another color. Signed-off-by:
Cédric Marie <cedric@hjuvi.fr.eu.org>
-