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 / claude code doing TOO MUCH.md
Last active June 28, 2025 19:49
Claude Code doing TOO MUCH - What to do?

2025-06-28:

Here is example of claude code doing TOO MUCH, here was just asked to "rebase" , but instead it "rebased and merged"...

> subagent: for PR in 122, 123, 124, 125, 126, 127 { rebase PR on a top of PR-1  (if PR-1 already
  merged then on a top of latest changes in master) }

● Task(Rebase and merge PRs 122-127 sequentially)
@gwpl
gwpl / optimizing github actions.md
Created June 23, 2025 09:36
Optimizing Github Actions Notes

Author: ChatGPT o4-mini-high 2025-06 https://chatgpt.com/share/6859173a-08ac-8007-9d1b-e076bd1bd7e3

Here are several strategies you can combine to avoid running your full suite on every single commit and to scope down Cypress (or any other heavy) tests only when they’re really needed:


1. Use Path-Based Triggers & Job-Level Filters

A. Workflow-level paths / paths-ignore

Robust <prefix> g Pane-Zoom Hook for Outer tmux

Whether you’re juggling multiple windows and panes across nested tmux sessions, having a single, ergonomic shortcut to switch and zoom panes can save you valuable time. This snippet extends your outer tmux configuration to bind <prefix> g for a seamless, two-step pane selection: un-zoom the current pane, display a long-lasting pane number overlay, and automatically zoom the pane you choose—all in one intuitive command.

Use this snippet in your ~/.ubertmux to bind <prefix> g so it:

  • Works whether the current pane is zoomed or not
  • Displays pane numbers overlay for up to 600 seconds (10 minutes)
  • Allows you to select any pane (including the same one) and zoom it automatically
@gwpl
gwpl / konsole-shift-enter-fix.sh
Last active June 15, 2025 14:41
Fix KDE Konsole Shift+Enter producing OM instead of newline (Useful for multiline inputs for claude code: https://github.com/anthropics/claude-code/issues/2115 )
#!/bin/bash
# Script to manage Konsole Shift+Enter keybindings
# Author: Script generated to fix Shift+Enter producing OM in Konsole
set -euo pipefail
# Default keytab file location (may vary by distribution)
DEFAULT_KEYTAB="/usr/share/konsole/default.keytab"
USER_KEYTAB="$HOME/.local/share/konsole/default.keytab"
@gwpl
gwpl / mermaid_html_template_with_zoom_and_panning.html
Created June 5, 2025 19:28
Mermaid HTML zooming panning template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Full-Screen Mermaid Diagram with Hovering Controls</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
crossorigin="anonymous"
@gwpl
gwpl / branches_as_inheritence_diagrams.md
Created June 5, 2025 12:36
Branches as Inheritence Diagram for AI Agents Era!

git branches as inheritence and evoluiton diagram

Relationships between Git branches, semantically can serve similar function to "ihneritence" in programming lanugages, and updating dependency require git rebase to inherit new features.

For generating diagram of dependencies between branches use:

@gwpl
gwpl / claude-continue-directory-migration.md
Created June 2, 2025 19:38
Claude Code `--continue` after Directory `mv` move - Migration Guide and Internal Mechanics explanation

Claude Code Continue Functionality: Directory Migration Guide ( Claude Code --continue after Directory mv move - Migration Guide and Internal Mechanics explanation )

This guide explains how to preserve Claude Code's --continue functionality when moving project directories, along with the underlying mechanics.

Note: Claude Code currently lacks built-in directory migration features. Each directory maintains independent conversation sessions, and history doesn't automatically transfer when projects are moved.

Quick Fix: Steps to Maintain Continue History

When you move a project directory and want to preserve your conversation history:

# Assuming working golang installation i.e.
# .bash: for example
# export GOPATH=~/go #or sth else ofc
# export PATH=$PATH:$GOPATH/bin
# install
git clone https://github.com/github/github-mcp-server.git
cd github-mcp-server
go install ./...
@gwpl
gwpl / installing_mods_on_ubuntu_with_older_ubuntu_failover_strategies.md
Last active March 20, 2025 10:42
Installing `mods` golang from source on fresh Ubuntu