Skip to content

Instantly share code, notes, and snippets.

View turbulentie's full-sized avatar

turbulentie turbulentie

  • France
View GitHub Profile
@turbulentie
turbulentie / iommu-group.sh
Created July 9, 2021 10:57
show group of devices for KVM passthrough
#!/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%%/*};
@turbulentie
turbulentie / dsd2flac.sh
Last active July 9, 2021 10:55
convert DSD to FLAC using dsf2flac bin
#!/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"