Skip to content

Instantly share code, notes, and snippets.

@slotrans
slotrans / history_stuff.sql
Created August 6, 2021 23:50
Building blocks for generic history-keeping in Postgres.
/*
Replace "your_schema" with whatever schema is appropriate in your environment.
It is possible to use "public"... but you shouldn't!
*/
/*
Function to stamp a "modified" timestamp. Adjust the name to suit your environment,
but that name is hard-coded so it is assumed that you only use _one_ such name.
@davesilva
davesilva / virt-manager-macos.md
Created August 14, 2020 11:50
Remote virt-manager from Mac OS

If you have a Linux machine with KVM on it, you can manage those VMs remotely from a Mac using virt-manager.

Step 1: Allow your user non-root access to KVM

SSH to the Linux machine and add your SSH user to the libvirt group

sudo usermod -a -G libvirt $(whoami)
@xiconfjs
xiconfjs / thisIsHowWeDoIt.txt
Created March 6, 2020 00:39
For every Supermicro X10 (X11 should be the same) user which can't set the uefi boot order from linux with efibootmgr
For every Supermicro X10 (X11 should be the same) user which can't set the uefi boot order from linux with efibootmgr:
It' not your fault - it's Supermicro's fault -> [1]. They prohibit the change of the boot order from non-windows or non-signed-kernel systems. They offer an option to set the boot order via SUM (Supermicro Update Manager) -> [2] but this is way to complicated.
Easy way via BIOS:
1. Enter BIOS
2. Go to Boot
3. Select Add new boot option
4. Select Add boot option