Skip to content

Instantly share code, notes, and snippets.

@firelightning13
firelightning13 / [GUIDE] GPU Passthrough for Laptop with Fedora.md
Last active March 15, 2026 01:14
[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
@unitycoder
unitycoder / .VoxelCollisionGenerator.cs.md
Created April 22, 2024 10:36 — forked from andrew-raphael-lukasik/.VoxelCollisionGenerator.cs.md
Tool to voxelize a Mesh Collider into multiple Box Colliders

GIF 21 01 2024 01-20-34

note: This is toy implementation, output is sub-optimal.

@Mr-Precise
Mr-Precise / vs_buildtools_dl_list.md
Created February 28, 2024 05:33
MSVC / VS / Buildtools download link collection list
@nicolasdao
nicolasdao / terminal_emojis.md
Last active March 15, 2026 01:08
Terminal emojis. Keywords: terminal console symbol emoji emoticon icon
Emoji Name Text example
🚀 Rocket You're up
📦 Package Installing additional dependencies...
Hook Running completion hooks...
📄 Document Generating README.md...
🎉 Party Successfully created project hello-vue.
👉 Next Get started with the following commands:
Tick Task completed
Magic Assembling project...

Codex Reviewer

You are a code reviewer agent powered by OpenAI Codex. Your job is to review code changes and provide actionable feedback.

Workflow

  1. Receive a review request (diff, file paths, or a description of changes).
  2. Use the mcp__codex__codex tool to start a Codex review session with the relevant code context.
  3. If follow-up analysis is needed, use mcp__codex__codex-reply with the thread ID from step 2.
  4. Summarize Codex's findings into a clear, structured review for the user.
@urkle
urkle / joypad.cpp
Created September 25, 2013 15:21
SDL2 Joystick hot-plugging example
#define MAX_CONTROLLERS 4
class JoypadController {
public:
JoypadController() : m_is_connected(false), m_gamepad(0), m_instance_id(-1), m_haptic(0) {}
int JoypadController::processEvent(const SDL_Event& event);
private:
SDL_GameController *m_gamepad;
SDL_Haptic *m_haptic;
@Medium1992
Medium1992 / AWG_1.5_script_RouterOS.md
Last active March 15, 2026 00:53
Script for Restoring Native WireGuard Functionality in MikroTik RouterOS / Скрипт для восстановления работоспособности нативного WireGuard в MikroTik RouterOS

📄 Description / Описание

🇷🇺 Русский

Предлагаю для тестирования скрипт, предназначенный для восстановления работоспособности нативного WireGuard.

Описание переменных:

  • Jc — количество рандомных пакетов
  • Jmin — минимальный размер рандомного пакета
@mrpeardotnet
mrpeardotnet / PVE-HP-ssacli-smart-storage-admin.md
Last active March 15, 2026 00:52
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

Complete Specification: Zap — Typed Functional Elixir-Syntax Language Lowering to Zig

1. Purpose

This language is a new statically typed, functional, macro-capable language with Elixir-like syntax and a native backend strategy built around lowering through a Zig-oriented compiler pipeline.

It is:

  • Elixir-shaped at the surface
  • statically typed
@alexfazio
alexfazio / codex-exec-experiments.md
Created March 14, 2026 17:21
Codex CLI exec mode experiments: 81 flag/feature tests with raw outputs

Codex CLI Exec Mode Experiments

Date: 2026-03-13 CLI Version: 0.114.0 Total Experiments: 81

Raw experiment outputs from testing various codex exec flag combinations.

Note: Some experiment outputs include MCP (Model Context Protocol) server startup messages (e.g., mcp: flywheel starting, mcp: exa ready). These are from the author's local Codex configuration and do not affect experiment results. Your output may differ depending on your configured MCP servers.