Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar

Aaron aaronedev

View GitHub Profile
@aaronedev
aaronedev / fzf_functions.sh
Last active July 28, 2025 19:22
remove arch packages with fzf + show size in fzf
#!/bin/bash
# db8751b509463f975115d66d8527c001
remove_official_packages() {
comm -23 <(yay -Qeq | sort) <(yay -Qmq | sort) | while read pkg; do
size=$(yay -Qi "$pkg" | grep "Installed Size" | awk '{print $4 $5}')
# Convert size to KB for comparison (using bash arithmetic)
size_kb=0
if [[ $size =~ ([0-9.]+)KiB ]]; then
size_kb=${BASH_REMATCH[1]%.*} # remove decimal part
elif [[ $size =~ ([0-9.]+)MiB ]]; then
[ids]
0a5c:8503
[global]
oneshot_timeout = 3333
chord_timeout = 75
overload_tap_timeout = 200
[main]
capslock = overload(nav, esc)

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@aaronedev
aaronedev / pdf_auto_ocr.sh
Last active July 15, 2025 08:54
auto OCR pdf files in current directory
# File name: pdf_auto_ocr.sh
# Author: aaronedev | https://github.com/aaronedev
# Date created: 2025-07-15 10:54:00
# Date modified: 2025-07-15 10:54:22
# ------
# Copyright 2025
set -euo pipefail
# --- Configuration ---
@aaronedev
aaronedev / fetch_kali.sh
Last active July 4, 2025 09:50
run kali os from local directory with qemu
#!/bin/bash
# https://www.kali.org/get-kali/#kali-virtual-machines
# qemu-kali.sh β€” boots kali-linux-2025.2-qemu-amd64.qcow2 from the local mir directory
IMG="kali-linux-2025.2-qemu-amd64.qcow2"
IMG_PATH="./mir/$IMG"
RAM="24G"
VRAM="1G"
# sanity check
@aaronedev
aaronedev / qemu-windows10-usb-audio-passthrough.sh
Last active November 23, 2025 19:21
QEMU Windows 10 VM with USB Audio Passthrough (Komplete Audio 6 & AKAI LPK25)
#!/usr/bin/env bash
# _ _ _ _ _ _ _ _ _ _ _ _ _
# .-"-._,-'_`-._,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,_,-'_`-,.
# ( ,-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-<.>-'_,-~-} ;.
# \ \.'_>-._`-<_>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._>-._`-._~--. \ .
# /\ \/ ,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._,-' `-._`./ \ \ .
# (`/ / `/ /.) ) .
# \ \ / \ / / \ / .
# \ \') ) β–Œ β–— β–Œ β–— β–Œ β–Œ β–—β–€β–– β–Œ β–œ ( (,\ \ .
# / \ / / β–žβ–€β–˜β–β–€β––β–žβ–€β–Œ β–Œ β–Œβ–„ β–›β–€β––β–žβ–€β–Œβ–žβ–€β––β–Œ β–Œβ–žβ–€β–˜ β–„ β–žβ–€β–˜ β–›β–€β––β–žβ–€β––β–žβ–€β––β–žβ–€β–Œβ–žβ–€β––β–žβ–€β–Œ ▐ β–žβ–€β––β–™β–€β–– ▝▀▖▛▀▖▐ β–žβ–€β––
@aaronedev
aaronedev / fetch_nixos.sh
Created May 10, 2025 10:03
qemu run nixos + use kvm libguestfs video accelaration
#!/bin/env bash
# ╔══════════════════════╗
# β•‘ β–‘β–ˆβ–€β–ˆβ–‘β–€β–ˆβ–€β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–€ β•‘
# β•‘ β–‘β–ˆβ–‘β–ˆβ–‘β–‘β–ˆβ–‘β–‘β–„β–€β–„β–‘β–ˆβ–‘β–ˆβ–‘β–€β–€β–ˆ β•‘
# β•‘ β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–€β–€β–€ β•‘
# β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
# author: https://github.com/aaronedev
# date: σ°Έ— 2025-05-10
@aaronedev
aaronedev / hp.conf
Created May 6, 2025 03:39
keyd config gist in /etc/keyd for HP Laptop DE keyboard
# ╔════════════════════════════════╗
# β•‘ β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–‘β–ˆ β•‘
# β•‘ β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–€β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–€β–‘β–ˆβ–€β–€β–‘β–‘β–ˆβ–‘ β•‘
# β•‘ β–‘β–€β–‘β–€β–‘β–€β–‘β–‘β–‘β–‘β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–‘β–‘β–‘β–€β–‘β–‘β–‘β–‘β–€β–‘ β•‘
# β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
[ids]
0001:0001
[main]
@aaronedev
aaronedev / omotron.conf
Created May 6, 2025 03:39
keyd config gist in /etc/keyd for OMOTRON Bluetooth DE keyboard
# ╔════════════════════════════════════════════════════════════════════╗
# β•‘ β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–„β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–€β–ˆβ–€β–‘β–ˆβ–€β–„β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–‘β–‘β–ˆβ–€β–„β–‘β–ˆβ–‘β–‘β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–€β–‘β–€β–ˆβ–€β–‘β–ˆβ–€β–ˆβ–‘β–ˆβ–€β–ˆβ–‘β–€β–ˆβ–€β–‘β–ˆβ–‘β–ˆ β•‘
# β•‘ β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–‘β–ˆβ–‘β–‘β–ˆβ–€β–„β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–‘β–‘β–ˆβ–€β–„β–‘β–ˆβ–‘β–‘β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–€β–€β–‘β–‘β–ˆβ–‘β–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–ˆβ–‘β–‘β–ˆβ–‘β–‘β–ˆβ–€β–ˆ β•‘
# β•‘ β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–‘β–€β–‘β–‘β–€β–‘β–€β–‘β–€β–€β–€β–‘β–€β–‘β–€β–‘β–‘β–‘β–€β–€β–‘β–‘β–€β–€β–€β–‘β–€β–€β–€β–‘β–€β–€β–€β–‘β–‘β–€β–‘β–‘β–€β–€β–€β–‘β–€β–€β–€β–‘β–‘β–€β–‘β–‘β–€β–‘β–€ β•‘
# β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
[ids]
0a5c:8503
[main]
@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