Skip to content
Snippets Groups Projects
  1. Feb 19, 2025
  2. Jan 28, 2025
  3. Nov 30, 2024
  4. Oct 20, 2024
  5. Jul 01, 2024
    • Cédric Marie's avatar
      Remove mychecksum script · e6cee7f5
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      e6cee7f5
  6. Mar 02, 2024
  7. Feb 14, 2024
    • Cédric Marie's avatar
      Add myfixflacmd5 script · 80c4c84d
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      80c4c84d
  8. Jan 13, 2024
  9. Nov 12, 2023
  10. Oct 28, 2023
  11. Oct 03, 2023
  12. Jul 10, 2023
  13. Jun 20, 2023
  14. May 30, 2023
    • Cédric Marie's avatar
      mychmodro/mychmodrw: Stop following UPG scheme · f9163d4d
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      f9163d4d
  15. May 16, 2023
    • Cédric Marie's avatar
      mychecksum: Update checksums if the content has changed · c8f1e4ac
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      c8f1e4ac
  16. May 07, 2023
  17. May 03, 2023
  18. Apr 22, 2023
  19. Mar 02, 2023
    • Cédric Marie's avatar
      mylsblk: Rename the script to mydrives · 5da4da50
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      5da4da50
    • Cédric Marie's avatar
      mychecksum: Add "list" command · bf35d90f
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      bf35d90f
  20. Jan 25, 2023
  21. Jan 04, 2023
    • Cédric Marie's avatar
      Add mylsblk script · 1696995f
      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: default avatarCédric Marie <cedric@hjuvi.fr.eu.org>
      1696995f
Loading