Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar
🤌
pizza

Aaron aaronedev

🤌
pizza
View GitHub Profile
@aaronedev
aaronedev / tte.py
Created September 21, 2025 11:25
TerminalTextEffects (TTE) previewer script with adjustable options to cycle through all available options
#!/usr/bin/env python3
"""
Author: Aaron-Samuel Hauck
GitHub: https://github.com/aaronedev
Email: code@hyprland.de
License: MIT License
description:
tte cycle controller with reliable stdin and top-right overlay.
Converted from Bash. Adds interactive live controls, helpers, and options.
-- =============================================================================
-- lightline to lualine theme converter
-- Author: shadman
-- License: MIT License
-- =============================================================================
-- Instructions
-- 1. Source this file in neovim with lightline installed
-- 2. execute :lua light2lualine_theme_converter('theme_name')
@aaronedev
aaronedev / root_bash_profile.sh
Last active September 6, 2025 08:49
root bashrc_profile
#!/usr/bin/env bash
# ━━━━━━━━━━━━━━━━━━━━━ Root Bash Profile ━━━━━━━━━━━━━━━━━━━━━
# Source .bashrc if it exists and we're in an interactive shell
if [[ -f ~/.bashrc ]] && [[ $- == *i* ]]; then
source ~/.bashrc
fi
# Add /root/.local/bin to PATH if it exists
[[ -d /root/.local/bin ]] && export PATH="/root/.local/bin:$PATH"
@aaronedev
aaronedev / root_bashrc.sh
Created September 6, 2025 08:48
root bashrc
#!/usr/bin/env bash
# ━━━━━━━━━━━━━━━━━━━━━ Minimal Root Bashrc ━━━━━━━━━━━━━━━━━━━━━
# Minimal bash configuration for root based on user setup
# Test for an interactive shell
[[ $- != *i* ]] && return
[[ -z "$PS1" ]] && return
# Source system bashrc
if [[ -f /etc/bashrc ]]; then
@aaronedev
aaronedev / virtualenv_direnv.sh
Created September 6, 2025 07:52
automatically source venv using direnv
# .envrc — prefer `workon py_env`, fallback to common venv locations
project_env='py_env'
# if workon is already available, use it
if type workon >/dev/null 2>&1; then
workon "$project_env"
return
fi
# try to source virtualenvwrapper to get workon
@aaronedev
aaronedev / post-commit-remotes
Last active September 2, 2025 12:17
post-commit hook to push to all other remotes defined like codeberg or gitlab for example
#!/bin/bash
# Post-commit hook to automatically push to GitLab and Codeberg after local commits
# This runs after each local commit
#
# Toggle remotes by setting environment variables:
# PUSH_GITLAB=false git commit -m "message" # Disable GitLab push
# PUSH_CODEBERG=false git commit -m "message" # Disable Codeberg push
# PUSH_REMOTES=false git commit -m "message" # Disable all remote pushes
#

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.

@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