Skip to content

Instantly share code, notes, and snippets.

View The24thDS's full-sized avatar

David Sima The24thDS

View GitHub Profile
@igv
igv / KrigBilateral.glsl
Last active July 11, 2026 19:05
Good test pattern: https://www.rtings.com/images/test-materials/2017/chroma-444.png (Compress it with any lossy codec first, for example jpeg. You can do it with mpv, only add screenshot-jpeg-source-chroma=no to mpv.conf). Usage: glsl-shader="~~/KrigBilateral.glsl"
// KrigBilateral by Shiandow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@igv
igv / SSimDownscaler.glsl
Last active July 11, 2026 19:10
Tuned for linear-downscaling=no.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
@senevoldsen
senevoldsen / script.cs
Created April 7, 2019 00:05
Space Engineer - Full Haul Detection
/***
(Mining) Capacity Exceeded Indicator.
When the percentage of used volume becomes too high for selected
cargo containers it will toggle indicators, for example a light.
======================================
Put the following texts in "Custom Data" to configure the
@fworks
fworks / install-zsh-windows-git-bash.md
Last active July 6, 2026 06:45
Zsh / Oh-my-zsh on Windows Git Bash
@advaith1
advaith1 / discordjs-slash-commands.md
Last active December 1, 2025 19:23
Slash Commands in Discord.js
@agyild
agyild / FSR.glsl
Last active July 15, 2026 21:41
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@firelightning13
firelightning13 / [GUIDE] GPU Passthrough for Laptop with Fedora.md
Last active July 1, 2026 02:32
[GUIDE] GPU Passthrough for Laptop with Fedora

Running Windows 10/11 Guest with GPU Passthrough using laptop running Fedora

Abstract

This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)

There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc
#!/bin/bash
###############################################
# CONFIGURATION
###############################################
PORTAINER_URL="https://portainer-host:40005"
PORTAINER_COMPOSE_DIR="/mnt/data/containers/portainer/compose"
DOCKHAND_STACK_DIR="/mnt/data/containers/dockhand/stacks/Env"