This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ----------------------------------------------------------------------------- | |
# iommu-group: show group of devices for KVM passthrough | |
# ----------------------------------------------------------------------------- | |
iommu-group() { | |
for d in /sys/kernel/iommu_groups/*/devices/*; do | |
n=${d#*/iommu_groups/*}; | |
n=${n%%/*}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ----------------------------------------------------------------------------- | |
# dsd2flac: convert DSD to FLAC using dsf2flac bin | |
# ----------------------------------------------------------------------------- | |
function dsd2flac() { | |
shopt -s nullglob # Sets nullglob | |
OUTDIR="${PWD##*/} [FLAC 24-88200]" | |
rm -f *.flac && rm -rf "$OUTDIR" |
NewerOlder