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 / fixuserhome.sh
Created August 11, 2025 09:46
bash script to fix permissions in a user's home folder
##############################################################################
# fixuserhome.sh
# Script to fix permissions in a user's home folder
# Author: https://github.com/aaronedev
# Version: 1.0
# License: MIT
# Date: 2025-08-11
##############################################################################
# Usage: fixuserhome [OPTIONS] [username] [exclude_dir1] [exclude_dir2] ...
# Example: fixuserhome -t testuser /var/log /tmp
@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 / json2vcf.sh
Created August 8, 2025 09:12
json to vcf contact creation designed for telegram export contact feature
#!/bin/bash
##############################################################################
# Script to convert a JSON file to VCF format
# was originally created for Telegram contacts when using
# export contact feature
##############################################################################
# Author: https://github.com/aaronedev
# Version: 1.0
# License: MIT
# 2025-08-08
@aaronedev
aaronedev / settings.json
Created August 3, 2025 23:16 — forked from brotherkaif/settings.json
LazyVim keymappings for VSCode
{
"vim.showMarksInGutter": false,
"vim.foldfix": true,
"vim.surround": true,
"vim.easymotion": true,
"vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj",
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [":", "w", "<CR>"],
#!/bin/bash
# Pop!_OS comes in Intel/AMD and NVIDIA variants - using Intel/AMD version
ISO=pop-os_22.04_amd64_intel_20.iso
IMG=popos-22-04.qcow2
if [ ! -f "$ISO" ]; then
echo "Downloading Pop!_OS 22.04 Intel/AMD version..."
wget https://iso.pop-os.org/22.04/amd64/intel/20/$ISO
fi
if [ ! -f "$IMG" ]; then
qemu-img create -f qcow2 $IMG 16G
#!/bin/bash
ISO=debian-live-12.11.0-amd64-cinnamon.iso
IMG=debian-12.qcow2
if [ ! -f "$ISO" ]; then
wget https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/$ISO
fi
if [ ! -f "$IMG" ]; then
qemu-img create -f qcow2 $IMG 16G
fi
qemu-system-x86_64 \
@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 ---