Skip to content

Instantly share code, notes, and snippets.

@whaaaley
whaaaley / .tmux.conf
Created December 26, 2025 20:41
tmux config - dec 26 2025
# Old color configuration
# set-option -g default-terminal 'tmux-256color'
# set-option -sa terminal-overrides ',xterm*:Tc'
# Modern color configuration for tmux 3.2+
set-option -g default-terminal 'tmux-256color'
set-option -g allow-passthrough on
set-option -ga terminal-features "*:RGB"
set-option -g status-position top
@whaaaley
whaaaley / config.yaml
Created December 26, 2025 20:26
glazewm config - dec 26 2025
general:
# Commands to run when the WM has started. This is useful for running a
# script or launching another application.
# Example: The below command launches Zebar.
# startup_commands: ['shell-exec zebar']
# Commands to run just before the WM is shutdown.
# Example: The below command kills Zebar.
# shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']
@whaaaley
whaaaley / keybindings.json
Created December 26, 2025 20:24
vscode keybindings - dec 26 2025
[
// ---
// October 9, 2024
// Indent and outdent lines
{ "key": "ctrl+u" , "command": "" },
{ "key": "ctrl+u" , "when": "editorFocus", "command": "editor.action.outdentLines" },
{ "key": "ctrl+i" , "command": "" },
{ "key": "ctrl+i" , "when": "editorFocus", "command": "editor.action.indentLines" },
@whaaaley
whaaaley / settings.json
Created December 26, 2025 20:24
vscode settings - dec 26 2025
{
// -----------------------
// System & Security
// -----------------------
"remote.autoForwardPortsSource": "process", // Only forwards ports for actual listening processes, not terminal output
"security.allowedUNCHosts": ["wsl.localhost"], // Allows WSL file access without warnings
"security.workspace.trust.enabled": false,
"window.commandCenter": false,
"window.customTitleBarVisibility": "never",
"window.menuBarVisibility": "toggle",
@whaaaley
whaaaley / curtain-measurements.md
Created December 21, 2025 16:35
Window curtain measurements backup - 2025-12-21

Curtain Measurements

Living Room

  • Window 1: 46 3/4 inches
  • Window 2: 46 3/4 inches
  • Window 3: 46 3/4 inches
  • Window 4: 40 3/4 inches (tall behind desk)
  • Window 5: 41 inches (short behind desk)
  • Door blind: 26 1/4 inches
@whaaaley
whaaaley / system-changes.md
Created December 21, 2025 16:18
Debian system configuration backup before Trixie upgrade - 2025-12-21

System Changes

Scripts Created in ~/.local/bin/

  • logout - i3 logout script (i3-msg exit) (~/.local/bin/logout)
  • audio-switcher - Rofi-based audio output device switcher using pactl (~/.local/bin/audio-switcher)
  • kill-app - Rofi-based GUI application killer (uses wmctrl via nix-shell for fast window detection) (~/.local/bin/kill-app)
  • wallpaper-picker - Rofi-based wallpaper selector using feh (~/.local/bin/wallpaper-picker)
  • gpick-toggle - Smart gpick launcher with optimized scratchpad behavior (~/.local/bin/gpick-toggle)
    • Toggles scratchpad visibility for instant show/hide
    • Prevents duplicate instances
#include QMK_KEYBOARD_H
#if __has_include("keymap.h")
# include "keymap.h"
#endif
#define ___ KC_TRNS
enum {
TD_CTRL_ALT,
TD_MO3_MO4,
// ==UserScript==
// @name Counter and Timer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chat.openai.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant GM_addStyle
// ==/UserScript==
@whaaaley
whaaaley / jwt.js
Last active August 27, 2022 06:02
Compress JWT Payload
import * as crypto from 'node:crypto'
import pako from 'pako'
import basex from 'base-x'
const base16 = basex('0123456789abcdef')
const base62 = basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz')
let header = JSON.stringify({ alg: 'HS256', typ: 'JWT' })
@whaaaley
whaaaley / settings.jsonc
Created March 6, 2022 21:53
VSCode Settings March 2022
{
"breadcrumbs.enabled": false,
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.cursorBlinking": "phase",
"editor.folding": false,
"editor.fontFamily": "Source Code Pro",
"editor.fontSize": 13,