1

Compare commits

...

2 Commits

Author SHA1 Message Date
3571fd90dc Config/Navi: Add ssd health cheats 2025-07-10 13:29:58 +02:00
4e1bf52fab Home: Add smartmontools + nvme-cli 2025-07-10 13:29:49 +02:00
2 changed files with 20 additions and 0 deletions

View File

@ -133,6 +133,10 @@ sudo duf -inode
awk -F<separator> '{print $<print>}'
$ separator: echo -e "' '\t\tWhitespace\n'[ ]'\t\tSingle Space\n'\\\t'\t\tTabs" --- --column 1
% sort
# Remove duplicate lines
sort -u
% mime
# Determine the mime-type of a file
file --mime-type <file>
@ -300,3 +304,17 @@ $ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
# Reencode and compress multiple videos using the h265 codec
fish -c "for name in <files>; ffmpeg -i '$name' -vcodec libx265 -crf <quality> 'out_$name'; end"
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
; ===========================
; DISKS
; ===========================
% nvme
# Query NVME disk SMART information
sudo nvme smart-log /dev/<drive>
$ drive: eza -1 /dev | rg --trim -e "^nvme\dn\dp\d" | sd "n\dp\d" "" | sort -u
% nvme
# Query NVME SSD used percentage
sudo nvme smart-log /dev/<drive> | rg --trim "percentage_used"
$ drive: eza -1 /dev | rg --trim -e "^nvme\dn\dp\d" | sd "n\dp\d" "" | sort -u

View File

@ -382,6 +382,8 @@
hwloc # Generate CPU topology diagram
lm_sensors # Readout hardware sensors
acpica-tools # Dump ACPI tables etc.
smartmontools # Disk health
nvme-cli # NVME disk health
# Video/Image/Audio utils
ffmpeg-full # I love ffmpeg (including ffplay)