Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar
🤌
pizza

Aaron aaronedev

🤌
pizza
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,
}

CLAUDE.md - Universal Development Principles

This document contains universal development principles and practices for AI assistants working on any project. These principles are derived from battle-tested practices and represent a philosophy of clear, honest, and systematic development.

Required Tools and Research Methods

1. Mandatory MCP Tool Usage

BEFORE ANY ACTION, you MUST use these tools. Tool names use double underscores between segments.

@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active August 31, 2025 09:31
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@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
#!/bin/bash
# first scrcpy
scrcpy --video-codec=h265 --max-size=1920 --max-fps=60 --shortcut-mod=lctrl --mouse-bind=++bh:++sn --keyboard=uhid &
# second scrcpy
scrcpy --video-codec=h265 --max-fps=60 --shortcut-mod=rctrl --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080 &
# third scrcpy
scrcpy --video-codec=h265 --max-fps=60 --shortcut-mod=rctrl --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080 --window-borderless --window-x=0 --window-y=0 --window-width=1920 --window-height=1080 --window-title='pixel7' &
@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 September 1, 2025 21:35
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