Skip to content

Instantly share code, notes, and snippets.

View yvesh's full-sized avatar
It’s kind of fun to do the impossible.

Yves Hoppe yvesh

It’s kind of fun to do the impossible.
View GitHub Profile
yvesh / win10-libvirt.xml
Created May 7, 2024 16:27
[Libvirt][KVM/Qemu] Windows 10 with Nvidia 4090 GPU passthrough - with Resizable Bar - 2024 edition
<domain type='kvm' xmlns:qemu=''>
<libosinfo:libosinfo xmlns:libosinfo="">
<libosinfo:os id=""/>
<memory unit='KiB'>65536000</memory>
<currentMemory unit='KiB'>65536000</currentMemory>
yvesh / config.yml
Created November 26, 2023 20:12
Advanced CirclCI Cypress Testing and Deployment Pipeline with Node backend and Vue 3 frontend
version: 2.1
ms-teams-notifier: oktapodia/ms-teams-notifier@3.0.0
# Unit tests, TypeScript tsc and E2E Cypress tests are always run
# Deployment to staging is done for every commit, if testing is successfull
# Deployment to production is only done if there is a new git tag, if testing is successfull
yvesh / lxc-prox-arch.conf
Created October 6, 2022 16:59
Proxmox LXC Arch Linux Desktop Container with passed through GPU, KVM, sound, keyboard. Make sure to adjust the /etc/fstab in the LXC Container
arch: amd64
cores: 24 # Or leave it to pass all
features: fuse=1,mount=nfs;cifs,nesting=1
hostname: archdesktop
memory: 64000
# Adjust the network to your needs
net0: name=eth0,bridge=vmbr0,gw=,hwaddr=xxxxxxxx,ip=,type=veth
# Adjust the subvols
rootfs: local-zfs:subvol-110-disk-0,mountoptions=noatime,replicate=0,size=1000G
swap: 512
yvesh /
Created April 5, 2020 07:38
Docker MongoDB Backup script for cronjobs on Docker Host
#!/usr/bin/env bash
target="/backup/mongo-$(date +%Y-%m-%d-%H).archive"
docker exec mongo_db_container sh -c 'exec mongodump --username $username --password $password --authenticationDatabase $auth_database -d $database --archive' > "$target"
yvesh /
Last active March 12, 2024 04:52
Proxmox 6.1 ZFS native full disk (ZFS root) encryption.

Simple guide for fulldisk encryption with Proxmox and ZFS native encryption

Install normally using the installer, after the setup reboot into recovery mode (from the USB stick). Make sure to install in UEFI mode (you need systemd-boot).

If the USB stick is not working for you, because of the old Kernel version (2.6.x), you can also use an Ubuntu 19.10 / 20.04 boot stick. ZFS suport is enabled there out of the box.


yvesh / gatsby.yml
Created February 22, 2020 11:29
[GitHub Action] Publish Gatsby website to an Linux SFTP (scp) server on PUSH
name: Publish a gatsby project with SFTP
on: [push]
runs-on: ubuntu-latest
- uses: actions/checkout@v2
- name: Build project
run: |
yvesh / proxmox-mac-os-gpu-passthrough.conf
Last active December 10, 2021 18:31
Proxmox 6.1 QEMU / KVM Mac OS Mojave Config with GPU Passthrough, uses ESP from macOS-Simple-KVM and patched pve-edk2-firmware
args: -device isa-applesmc,osk="INSERT_KEY_HERE" -smbios type=2 -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check -device usb-kbd,bus=ehci.0,port=2
balloon: 0
bios: ovmf
bootdisk: sata0
cores: 16
hostpci0: 42:00,pcie=1,x-vga=1
ide2: none,media=cdrom
machine: q35
memory: 32000
name: macOS
yvesh / gist:64ec1f64e3c7c26497282b776348f662
Created December 19, 2019 11:49
Proxmox LXC Arch Linux Container with passed through GPU, KVM, sound, keyboard etc. (Xorg with amdgpu working), Looking Glass Host - Linux Main OS in a container
arch: amd64
cores: 24
features: fuse=1,mount=nfs;cifs,nesting=1
hostname: archxorg
memory: 64000
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=XX:XX:XX:XX:XX.XX,ip=dhcp,type=veth
ostype: archlinux
rootfs: local-zfs:subvol-100-disk-0,size=500G
swap: 512
lxc.autodev: 1
yvesh / pxe-101.conf
Created December 19, 2019 11:41
Proxmox QEMU KVM Windows 10 Configuration with GPU PCI-Passthrough and looking-glass support. Binds non-tls spice port to 5930
agent: 1
args: -device ivshmem-plain,memdev=ivshmem,bus=pcie.0 -object memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=32M -device virtio-mouse-pci -device virtio-keyboard-pci -spice addr=,port=5930,disable-ticketing
audio0: device=AC97,driver=spice
bios: ovmf
bootdisk: sata0
cores: 16
cpu: host,flags=+ibpb;+virt-ssbd
hostpci0: 42:00,pcie=1,x-vga=1
ide2: none,media=cdrom
machine: q35
yvesh / mac-os-mojave-gpu-pci-pass-through.xml
Last active December 27, 2019 17:46
MacOS 10.14 Mojave Hackintosh - libvirt / Qemu / KVM AMD ThreadRipper with GPU pass-through
<domain type='kvm' xmlns:qemu=''>
<memory unit='KiB'>32817152</memory>
<currentMemory unit='KiB'>32817152</currentMemory>
<vcpu placement='static'>32</vcpu>
<type arch='x86_64' machine='pc-q35-4.0.1'>hvm</type>
<loader readonly='yes' type='pflash'>/mnt/qemu/macos/firmware/OVMF_CODE.fd</loader>