Compare commits
2 Commits
1c12bebd39
...
3571fd90dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
3571fd90dc
|
|||
|
4e1bf52fab
|
@ -133,6 +133,10 @@ sudo duf -inode
|
|||||||
awk -F<separator> '{print $<print>}'
|
awk -F<separator> '{print $<print>}'
|
||||||
$ separator: echo -e "' '\t\tWhitespace\n'[ ]'\t\tSingle Space\n'\\\t'\t\tTabs" --- --column 1
|
$ separator: echo -e "' '\t\tWhitespace\n'[ ]'\t\tSingle Space\n'\\\t'\t\tTabs" --- --column 1
|
||||||
|
|
||||||
|
% sort
|
||||||
|
# Remove duplicate lines
|
||||||
|
sort -u
|
||||||
|
|
||||||
% mime
|
% mime
|
||||||
# Determine the mime-type of a file
|
# Determine the mime-type of a file
|
||||||
file --mime-type <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
|
# 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"
|
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"
|
$ 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
|
||||||
|
|||||||
@ -382,6 +382,8 @@
|
|||||||
hwloc # Generate CPU topology diagram
|
hwloc # Generate CPU topology diagram
|
||||||
lm_sensors # Readout hardware sensors
|
lm_sensors # Readout hardware sensors
|
||||||
acpica-tools # Dump ACPI tables etc.
|
acpica-tools # Dump ACPI tables etc.
|
||||||
|
smartmontools # Disk health
|
||||||
|
nvme-cli # NVME disk health
|
||||||
|
|
||||||
# Video/Image/Audio utils
|
# Video/Image/Audio utils
|
||||||
ffmpeg-full # I love ffmpeg (including ffplay)
|
ffmpeg-full # I love ffmpeg (including ffplay)
|
||||||
|
|||||||
Reference in New Issue
Block a user