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 / 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_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 June 5, 2025 07:06
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:

@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 May 29, 2025 06:39
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

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@deepanchal
deepanchal / starship.toml
Last active November 2, 2024 19:22
Starship config
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
$username\
$hostname\
$localip\
$shlvl\
$singularity\
$kubernetes\
@sanmue
sanmue / starship.toml
Last active September 20, 2024 16:56
New updated Version: https://gist.github.com/sanmue/f0ed97bed95c7bc7926cc3a88949bd39; starship.toml; 'Starship shell prompt' config file; Variant 1: two line prompt, no background in top line, see screenshot in the comment below for more Info
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# ~/.config/starship.toml
# Customizing the prompt (including desired modules at desired position and sequence):
# *** Borrowed from a design seen in a zsh (should be from https://github.com/romkatv/powerlevel10k)
format = """
[╭╴](fg:#505050)[$os]($style)[ ](fg:#505050 bold)[$username$hostname$sudo$directory\
$git_branch$git_commit$git_state$git_metrics$git_status\