Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar

Aaron aaronedev

View GitHub Profile
@aaronedev
aaronedev / README.md
Created August 27, 2025 21:52 — forked from dangh/README.md
Prominent tab color for Firefox container

firefox container tab color

  1. Go to about:config, enable these flags:
    • toolkit.legacyUserProfileCustomizations.stylesheets
    • layout.css.color-mix.enabled
  2. Go to about:support, look for profile folder.
  3. Add the CSS below to chrome/userChrome.css inside the profile folder.
@aaronedev
aaronedev / .envrc
Created August 24, 2025 18:24
direnv load local node-modules binaries
# if the project has local bins, add them to PATH
if [ -d ./node_modules/.bin ]; then
PATH_add ./node_modules/.bin
fi
@aaronedev
aaronedev / monitors.sh
Last active August 19, 2025 09:45 — forked from Diaoul/monitors.sh
Arrange workspace on multiple monitors (Hyprland)
#!/usr/bin/env bash
set -e
declare -i last_called=0
declare -i throttle_by=4
@throttle() {
local -i now=$(date +%s)
if (($now - $last_called > $throttle_by)); then
# delay execution
@aaronedev
aaronedev / git-commit-template.md
Created August 18, 2025 11:00 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@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 November 5, 2025 05:51 — 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 \