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
yvesh / docker-compose.yml
Created May 30, 2024 12:11
Apache Guacamole 2024 - docker-compose.yml setup
# networks
# create a network 'guacamole_net' in mode 'bridged'
networks:
guacamole_net:
driver: bridge
# services
services:
# guacd
guacd:
@yvesh
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='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10</name>
<uuid>veryunique</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>65536000</memory>
<currentMemory unit='KiB'>65536000</currentMemory>
@yvesh
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
orbs:
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
jobs:
@yvesh
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=10.0.1.1,hwaddr=xxxxxxxx,ip=10.0.1.42/24,type=veth
# Adjust the subvols
rootfs: local-zfs:subvol-110-disk-0,mountoptions=noatime,replicate=0,size=1000G
swap: 512
@yvesh
yvesh / mongo-docker-dump.sh
Created April 5, 2020 07:38
Docker MongoDB Backup script for cronjobs on Docker Host
#!/usr/bin/env bash
username=""
password=""
database=""
auth_database="admin"
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
yvesh / proxmox-zfs-encryption.md
Last active October 1, 2024 09:40
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.

Steps:

@yvesh
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]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build project
run: |
@yvesh
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
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
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=0.0.0.0,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