Skip to content

Instantly share code, notes, and snippets.

View gwpl's full-sized avatar

Grzegorz Wierzowiecki gwpl

  • Europe - usually: Zürich, Warsaw or Berlin
View GitHub Profile
@gwpl
gwpl / decfra-sixel-research.md
Created March 5, 2026 22:45
DECFRA/DECERA and Sixel Graphics Interaction: Research Notes — VT420 spec, real VT340 hardware testing, xterm extensions

DECFRA / DECERA and Sixel Graphics Interaction: Research Notes

TL;DR

Whether DECFRA/DECERA clear sixel pixel data is terminal-dependent, not standardised. The VT420 spec defines DECFRA as a text-plane operation only. On real VT340 hardware, DECERA did not affect sixel graphics. xterm added sixel-clearing to DECFRA/DECERA in patch #370 (2021), but this is an xterm extension adopted by some modern terminals.

VT420/VT510 Specification

@gwpl
gwpl / bb_HOW_SSH_HOST_ALIASES_WORK.md
Last active March 5, 2026 20:06
GitHub CLI (gh) Multi-Account Usage: Parallel-Safe & Secure (GH_CONFIG_DIR approach)

Understanding SSH Host Aliases ("Pseudo-Domains") for Git Multi-Account

The Core Concept

When you see github.com-work in an SSH config or git remote URL, that is NOT a real domain name. It's an SSH host alias (sometimes called a "pseudo-domain") — a label that only exists in your ~/.ssh/config file. It never hits DNS.

# This is an ALIAS — "github.com-work" is a made-up name
Host github.com-work
 HostName github.com # ← the REAL server to connect to
@gwpl
gwpl / lets-brainstorm.md
Created March 4, 2026 22:55
.claude/commands /lets-brainstorm.md
name description argument-hint
lets-brainstorm
Iterative brainstorming interview -- ask creative questions, multi-select to remix, converge to decisions.
<topic or goal to brainstorm about>

Brainstorming Session

Launch an iterative brainstorming interview about the given topic.

@gwpl
gwpl / Claude-Code--Orchestration-Agents-Skills-Hooks--reference.md
Created March 4, 2026 22:34
IndyDevDan: 4-Layer Claude Code Architecture — Skills → Agents → Commands → Reusability (Playwright Browser Automation & UI Testing) | Channel: https://www.youtube.com/@indydevdan

Claude Code: Orchestration, Agents, Skills & Hooks — Quick Reference

Companion notes to IndyDevDan's 4-Layer Architecture video. Maps his concepts to Claude Code's built-in primitives.


1. Orchestration → Custom Commands (Reusable Prompts)

Custom commands are markdown files in .claude/commands/ that act as reusable,

@gwpl
gwpl / check-github-license-detection.sh
Created March 2, 2026 19:34
GitHub License Detection NOASSERTION — Diagnosis Guide & Script
#!/usr/bin/env bash
# check-github-license-detection.sh
#
# Diagnose GitHub license detection issues for a repository.
# Checks the API response, inspects license files, and suggests fixes.
#
# Usage:
# ./check-github-license-detection.sh OWNER/REPO
# ./check-github-license-detection.sh # (auto-detect from current git repo)
#
@gwpl
gwpl / gist-anthropic-oss-copyright.md
Created March 2, 2026 10:16
Anthropic Claude: Code Ownership & Open Source Licensing Compatibility (reusable reference)
@gwpl
gwpl / Makefile
Last active February 26, 2026 20:11
CadQuery Lego Brick Models — Parametric 3D generators with STL, SVG & PNG export. Includes: 6x2 thin brick, vase-on-2x2-brick. Run with: uv run --with=cadquery <script>.py or use make
# CadQuery Lego Brick Models — Build all exports
#
# Prerequisites:
# - uv (https://docs.astral.sh/uv/)
# - For PNG conversion (optional): rsvg-convert, inkscape, or imagemagick
#
# Usage:
# make # build all models (STL + SVG + PNG)
# make brick # build only the 6x2 lego brick
# make vase # build only the vase-on-brick model
@gwpl
gwpl / AI-AGENT-INSTRUCTIONS.md
Last active February 22, 2026 19:00
chafa sixel-via-tmux rendering bug — reproduction kit (https://github.com/hpjansson/chafa/issues/327)

AI Agent Instructions — chafa Sixel-via-tmux Bug Reproduction

Context

Bug: chafa (1.14+) auto-detects sixel terminal capability and produces sixel output. When running inside tmux, large sixel payloads (roughly >500KB) fail to render — the image is invisible (blank space) even though chafa exits successfully and produces valid output bytes.

Upstream issue: hpjansson/chafa#327

Quick Setup

@gwpl
gwpl / TEST-REPORT.md
Created February 19, 2026 12:36
Test Report: tmux Sixel Popup Rendering and Cleanup (PR #4868)
@gwpl
gwpl / README.md
Last active March 2, 2026 19:31
tmux Sixel Popup Cleanup Testing Toolkit - automated testing for sixel image rendering and cleanup in tmux display-popup overlays

tmux Sixel Popup Cleanup Testing Toolkit

Automated testing infrastructure for verifying sixel image rendering and cleanup in tmux display-popup overlays.

Problem

When a sixel image is displayed inside a tmux popup and the popup closes, pixel artifacts can persist on screen ("ghosting"). This happens because terminal emulators render sixel data in a separate graphics layer that standard