william

Keep Calm and Markdown.

Alacritty stopped accepting keyboard input on X11 due to a wedged fcitx XIM context

One of my Alacritty windows on Linux Mint (X11/Cinnamon) suddenly stopped accepting keyboard input while holding an active tmux and SSH session. Other Alacritty windows on the same desktop kept working normally.

The terminal itself was not frozen: the tmux status clock kept ticking, the SSH connection stayed alive, and Alacritty’s IPC socket answered immediately. A wedged fcitx XIM context for that single window was swallowing every X11 KeyPress before it reached Alacritty’s keyboard handler. Restarting fcitx (fcitx -r -d) recovered the window in place without closing it, and launching Alacritty with XMODIFIERS=@im=none prevents the freeze from coming back.

Nested tmux over SSH: automatically route Ctrl-k to the remote

My local tmux and one remote tmux both used Ctrl-k as their prefix. After connecting over SSH, Ctrl-k c still created a local window. The local tmux consumed the prefix before SSH could send it to the server.

I wanted Ctrl-k to control the remote when its tmux also accepted Ctrl-k, but stay local for other servers. The working solution uses a pane-local flag and one SSH probe per login. Ctrl-b remains an always-local escape hatch.

Keep SSH reachable with a closed lid on Linux Mint

My Linux Mint notebook accepted SSH connections while its lid was open, but became unreachable when I shut it. The connection command was unchanged:

1
ssh william@127.0.0.1 -p 62223

The relevant setting was not in sshd_config. Cinnamon was configured to suspend the notebook when the lid closed, even on AC power. I changed just the AC lid action, leaving the battery policies alone.

ChatGPT models in Claude Code: gptcc setup and troubleshooting

I wanted Claude Code’s terminal interface and tools to run ChatGPT models. Installing gptcc was only the first step. I could select Sol in /model and still get an account-hold error before the request reached GPT.

The working setup uses a local authenticated gateway, ChatGPT OAuth, and Claude Code’s custom model picker. It lists eight GPT models, makes Default resolve to GPT-6.1 Sol with medium effort, and displays Codex’s five-hour and weekly usage beside the model. A real Claude Code session completed a file-read tool call in two turns.

Why trading.hyena17 runs past 09:30: request timeouts and slow service readiness

I wanted to know which tasks in trading.hyena17 make the morning setup run past 09:30. Sorting by duration was misleading. Some tasks deliberately run until 15:00, while a task that takes only five seconds can still start ninety seconds late.

The Nov 12 run has two main problems. Stock-weight preparation takes 352.6 seconds and leaves only 4.4 seconds before 09:30. Downstream, the slowest shared-service startup takes another 167.3 seconds and finishes at 09:35:15. Redis itself takes 4.8 seconds. Its late start comes from its dependencies.

0%