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
#!/usr/bin/env bash | |
shopt -s nullglob | |
lastgroup="" | |
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do | |
for d in $g/devices/*; do | |
if [ "${g##*/}" != "$lastgroup" ]; then | |
echo -en "Group ${g##*/}:\t" | |
else | |
echo -en "\t\t" |
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 | |
for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do | |
n=${d#*/iommu_groups/*}; n=${n%%/*} | |
printf 'IOMMU Group %s ' "$n" | |
lspci -nns "${d##*/}" | |
done; |
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 | |
# v1.0.0 (2023-01-21) [email protected] | |
HOSTS=(foo.example.org bar.example.com) | |
SIMPLE=(host1 host2 host3) | |
SUFFIX=".example.net" | |
for simple in "${SIMPLE[@]}" | |
do | |
HOSTS+=("${simple}${SUFFIX}") | |
done |
This file has been truncated, but you can view the full file.
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
https://global.download.synology.com/download/Addons/NoteStationClipper/1.0-0025/NoteStationClipper-1.0-0025.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0046/NoteStationClipper-2.0-0046.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0049/NoteStationClipper-2.0-0049.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0064/NoteStationClipper-2.0-0064.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0066/NoteStationClipper-2.0-0066.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0091/NoteStationClipper-2.0-0091.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0092/NoteStationClipper-2.0-0092.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0093/NoteStationClipper-2.0-0093.crx | |
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0094/NoteStationClipper-2.0-0094.crx | |
https:/ |
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
# Input: list of rows with format: "<filesize> filename", e.g. | |
# filesizes.txt | |
####################### | |
# 1000K file1.txt | |
# 200M file2.txt | |
# 2G file3.txt | |
# | |
# Output: | |
cat filesizes.txt | numfmt --from=iec | awk 'BEGIN {sum=0} {sum=sum+$1} END {printf "%.0f\n", sum}' |
Importer for HIBP Passwords (API)
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
DOMAIN_CHAIN_LOCATION="ssh:example.net:/home/yourusername/tmp.pem" | |
DOMAIN_KEY_LOCATION="ssh:example.net:/home/yourusername/tmp.key" | |
RELOAD_CMD="ssh example.net -- sudo /path/to/letsencrypt.sh" |
Tested at Proxmox VE 7.x β Debian 11 (Bullseye)
- Save the shell script anywhere and modify
BACKUP_UPLOAD
path to fit your needs. - Create a
~/.netrc
file as root and paste your FTP credentials:
machine backup-destination.example.net
login yourstupidremoteusername
password yoursecretpassword