Skip to content

Instantly share code, notes, and snippets.

@bindi
bindi / blink_led
Created December 15, 2023 03:10
Blinks the locate led if your disk shelf and HBA supports it. Tested on a NetApp DS4243 (IOM6 module) + LSI SAS 9200-8E.
@bindi
bindi / snapshotmounter.ps1
Last active December 27, 2021 13:50
rclone encrypted zfs snapshot selector and mounter
#Edit these
$USERNAME = "bindi"
$REMOTE = "unencrypted"
#Stop editing after this line (meaning end-users, you as the admin should preconfigure directory structure below)
$filename = "snapshotmounter_for_$REMOTE.xml"
if (!(Test-Path $filename)) {
$rclone_config_password = (Read-Host -Prompt 'Enter rclone encryption **password** for current remote (saved (**as encrypted**) for future use of the same remote)' -AsSecureString)
#!/bin/bash
# helps with (re)installing https://github.com/DualCoder/vgpu_unlock
# after you have installed nvidia drivers (./NVIDIA-Linux-*-vgpu-kvm.run --dkms)
#
# this script assumes you have vgpu_unlock in /root
# it also assumes you only have one nvidia-<version> in /usr/src/
# (beware that NVIDIA doesn't clean up files in that directory, even if you run the uninstaller, do it yourself if required)
#
# hope it isn't too hacky. works for me :)!