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 / gmail-address-aliases-dots-and-plus-tags-explained.md
Last active March 24, 2026 12:29
Gmail address equivalence: dots are ignored, +tags are aliases — official rules, examples, and normalization algorithm

Gmail Address Equivalence: Dots, Case & Plus-Tag Aliases

BLUF: For consumer @gmail.com accounts, three orthogonal rules apply: dots in the username are ignored, capitalization is ignored, and +tag suffixes deliver to the same inbox. A.B.C@gmail.com, abc@gmail.com, and AbC+Shop@gmail.com all reach the same mailbox. This does not fully apply to Google Workspace (custom domain) addresses — dots may matter there.


Quick Reference (TL;DR with Examples)

Given the address johnsmith@gmail.com, all of these deliver to the same inbox:

@gwpl
gwpl / 2026-03-21--claude-code-pretooluse-hook-security-pitfalls.md
Created March 21, 2026 13:51
Claude Code PreToolUse Hook Security Pitfalls — permissionDecision footguns, correct patterns, permission/sandbox architecture reference

Claude Code PreToolUse Hook Security Pitfalls & Reference Guide

A concise reference for writing safe Claude Code hooks. Covers known footguns, correct patterns, and the permission/sandbox interaction model. Contributions welcome — see the end of this document.

1. The Critical permissionDecision Footgun

The three values and what they mean

@gwpl
gwpl / Logical_Intelligence_and_Eve_Bodnia_Energy_Based_Reasoning_Models_as_the_Post-LLM_Paradigm.md
Last active March 17, 2026 23:01
Logical Intelligence & Eve Bodnia: Energy-Based Reasoning Models as the Post-LLM Paradigm ( https://t.me/llmaitools/3643 )
@gwpl
gwpl / claude-code-conditional-plugin-loading.md
Created March 16, 2026 21:15
Claude Code: Conditionally Loading Plugins with --plugin-dir

Claude Code: Conditionally Loading Plugins with --plugin-dir

Overview

Claude Code supports loading plugins on a per-session basis using the --plugin-dir flag. This is additive — it loads the specified plugin(s) in addition to all normally installed/enabled plugins. It does not replace them.

A plugin directory is identified by having a .claude-plugin/plugin.json manifest inside it.

Basic Usage

@gwpl
gwpl / 2026-03-14--ssh-reverse-tunnel-quick-setup-guide.md
Created March 15, 2026 14:01
SSH Reverse Tunnel — Quick Setup Guide
title SSH Reverse Tunnel — Quick Setup Guide
geometry a4paper,top=2cm,left=1cm,right=1cm,bottom=1.5cm
gist https://gist.github.com/gwpl/44a114bcd3c33b2b79dc3815a02812ee

SSH Reverse Tunnel — Quick Setup Guide

Control remote computers (behind NAT) from your master machine, where remote computers initiate the connection.

@gwpl
gwpl / sparql-toolchain-patterns.md
Last active March 9, 2026 18:59
Git-First Graph Databases: practical patterns for building graph data systems that start as text files and scale to production stores — with principles on data architecture vs. implementation architecture, sharding, and avoiding premature optimization
title SPARQL Toolchain Patterns — Git-First Graph Databases
status active
license CC-BY-4.0

SPARQL Toolchain Patterns

**A practical guide to building graph databases that start as text files and scale to production stores — without losing clarity, auditability, or the

@gwpl
gwpl / 00_AnkiConnect-Setup-and-Integration-Guide-for-Agents-and-Programmers.md
Last active March 8, 2026 22:14
AnkiConnect: Setup & Integration Guide for Agents and Programmers — install, API basics, card CRUD, deduplication rules (with official docs references), TSV failover import, stats/scheduling queries

AnkiConnect: Setup & Integration Guide for Agents and Programmers

Practical guide to programmatically managing Anki flashcards via the AnkiConnect addon HTTP API.

Covers: installation, verification, card CRUD operations, statistics queries, deduplication behavior (with official documentation references), and batch workflows.

Contents

File Topic
@gwpl
gwpl / 00_Extending Cognitive Horizon Concept_Index.md
Last active March 6, 2026 16:58
Extending Cognitive Horizon Concept
@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