Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar
🎨
working on violet void theme

Aaron aaronedev

🎨
working on violet void theme
View GitHub Profile
@aaronedev
aaronedev / inspector.lua
Last active August 9, 2025 10:17 — forked from roycrippen4/inspector.lua
Inspect nvim highlight groups under mouse cursor in a floating window
local M = {}
-- Cache for module state
local state = {
buf = nil,
win = nil,
ns = nil,
width = 34,
uses_mousemoveevent = vim.o.mousemoveevent,
}
@aaronedev
aaronedev / qemu-windows10-usb-audio-passthrough.sh
Last active June 5, 2025 13:52
QEMU Windows 10 VM with USB Audio Passthrough (Komplete Audio 6 & AKAI LPK25)
#!/usr/bin/env bash
# _ _ _ _ _ _ _ _ _ _ _ _ _
# .-"-._,-'_`-._,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,.
# ( ,-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-~-} ;.
# \ \.'_>-._`-<_>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._~--. \ .
# /\ \/ ,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._`./ \ \ .
# (`/ / `/ /.) ) .
# \ \ / \ / / \ / .
# \ \') ) ▌ ▗ ▌ ▗ ▌ ▌ ▗▀▖ ▌ ▜ ( (,\ \ .
# / \ / / ▞▀▘▝▀▖▞▀▌ ▌ ▌▄ ▛▀▖▞▀▌▞▀▖▌ ▌▞▀▘ ▄ ▞▀▘ ▛▀▖▞▀▖▞▀▖▞▀▌▞▀▖▞▀▌ ▐ ▞▀▖▙▀▖ ▝▀▖▛▀▖▐ ▞▀▖
@aaronedev
aaronedev / fetch_debian.sh
Created May 5, 2025 21:13
qemu run debian + use venus kvm libguestfs video accelaration
#!/bin/bash
# Current Debian stable is 12 (bookworm)
ISO=debian-12.4.0-amd64-netinst.iso
IMG=debian-12.qcow2
if [ ! -f "$ISO" ]; then
wget https://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/mini.iso -O $ISO
# Alternative full netinst image if mini.iso is too minimal
@aaronedev
aaronedev / fetch_ubuntu.sh
Last active March 26, 2025 11:55
qemu run ubuntu + use venus kvm libguestfs video accelaration
#!/bin/bash
ISO=ubuntu-24.10-desktop-amd64.iso
IMG=ubuntu-24-10.qcow2
if [ ! -f "$ISO" ]; then
wget https://releases.ubuntu.com/oracular/$ISO
fi
if [ ! -f "$IMG" ]; then
@aaronedev
aaronedev / update-repos.sh
Last active April 11, 2025 06:58
Bash Script: Auto-Update Multiple Git Repositories | home git repository updater ✅
#!/bin/bash
# File: ~/.local/bin/update-repos.sh
# Make sure to chmod +x this script after creating it
# Define color variables for styling output
BLUE='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
BLUE='\033[1;34m'
MAGENTA='\033[1;35m'
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active August 13, 2025 08:04
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@roycrippen4
roycrippen4 / inspector.lua
Created October 8, 2024 23:54
Inspect nvim highlight groups under mouse cursor in a floating window
local api = vim.api
local cmd = vim.cmd
local fn = vim.fn
local iter = vim.iter
local autocmd = api.nvim_create_autocmd
local close_win = api.nvim_win_close
local create_buf = api.nvim_create_buf
local create_namespace = api.nvim_create_namespace
local get_current_win = api.nvim_get_current_win
@TheOtterlord
TheOtterlord / red.frag
Created September 1, 2024 10:50
Monochromatic red shader
precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
void main() {
vec4 pixColor = texture2D(tex, v_texcoord);
// calculate the perceived brightness (https://www.101computing.net/colour-luminance-and-contrast-ratio/)
vec4 luminance = pixColor * vec4(0.2126, 0.7152, 0.0722, 1.0);
@aaronedev
aaronedev / .gitignore
Last active November 17, 2024 19:08
gitignore starter template windows linux macos kinda as a global ignore
# ======================================================================
# Windows Global Ignore List
# =====================================================================
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
@rahaaatul
rahaaatul / zsh_on_termux.md
Last active July 29, 2025 12:10
Installing ZSH on Termux including themes & useful plugins

ZSH on Termux!

Spice up termux with beautiful themes and productivity plugins to make your life easier!

Install ZSH, GIT & LSD

pkg install zsh git lsd vim

Install Oh-My-Zsh