Skip to content

Instantly share code, notes, and snippets.

@mateu
mateu / gist:6335e2a7f5575ca48722ea7b2fc19aac
Created May 3, 2026 20:09
fix discord for v2026.5.2 of openclaw
I checked memory + session logs. I found a clear Discord fix record, but it’s labeled **Forge**, not clawd. The clawd 2026.5.2 work I found was the git/tag rebuild/restart; I don’t see a separate clawd-specific Discord repair note. So either we reused the same fix on clawd, or the host label got fuzzy in the chat.
The Discord fix we documented was:
1. **Installed the official Discord plugin**
```bash
openclaw plugins install @openclaw/discord --pin
```
ClawHub didn’t have an installable version, so direct npm/plugin install worked.
@mateu
mateu / dump.txt
Created May 3, 2026 17:33
KeyError: '0 is not registered'
Welcome to Hermes Agent! Type your message or /help for commands.
A legacy OpenClaw directory was detected at ~/.openclaw/.
To port your config, memory, and skills over to Hermes, run `hermes claw migrate`.
If you've already migrated and want to archive the old directory, run `hermes claw cleanup` (renames it to ~/.openclaw.pre-migration — OpenClaw will stop working after this).
This tip only shows once.
✦ Tip: hermes chat -t web,terminal enables only specific toolsets for a focused session.
⚠ tirith security scanner enabled but not available — command scanning will use pattern matching only
Goodbye! ⚕
@mateu
mateu / agent-mode.md
Created March 27, 2026 16:56
My agents's take on the article "Thoughts on Slowing the Fuck Down"
@mateu
mateu / netdata-update.log
Created November 21, 2025 15:53
Netdata Update Confusion
[/tmp/netdata-kickstart-mX5vyiV2mG]# test -x //usr/libexec/netdata/netdata-updater.sh
OK
[/tmp/netdata-kickstart-mX5vyiV2mG]# //usr/libexec/netdata/netdata-updater.sh --interactive --not-running-from-cron
Fri Nov 21 08:31:03 AM MST 2025 : INFO: netdata-updater.sh: Checking if a newer version of the updater script is available.
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 http://repository.netdata.cloud/repos/stable/debian bookworm/ InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 https://download.docker.com/linux/debian bookworm InRelease
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
@mateu
mateu / deterministic-split.py
Created August 21, 2025 19:35
Split jsonl in manner that is determistic when the random_seed is fixed.
import orjson # pip install orjson
import hashlib
def deterministic_split_jsonl_orjson(input_file, train_file, test_file,
id_field='id', test_ratio=0.2, random_seed=42):
train_count = 0
test_count = 0
threshold = int(test_ratio * 2**32)
@mateu
mateu / debug-war-crash.log
Created July 31, 2025 21:58
Ways to debug warp terminal crashing on startup on Mac OS
Prompt> How does one debug a crash with warp terminal on startup?
Here are several approaches to debug a Warp terminal crash on startup:
## 1. Check Crash Logs
First, look for crash logs in the system logs:
# Check system logs for Warp crashes
log show --predicate 'process == "Warp"' --last 1h
# Or check Console.app for crash reports
@mateu
mateu / gist:c08f6084c8d1516166b6
Created January 22, 2015 18:14
generate a warning for an incorrect Content-Length header
#!/usr/bin/env perl
use strict 'vars';
use warnings;
use Plack;
use Plack::Test::Agent;
use Socket;
my $server = 'Standalone';
@mateu
mateu / gist:2902025
Created June 9, 2012 18:08
testicle
festival
use strict;
use warnings;
use 5.010;
my $var;
$var //= 2;
say $var;
my @array_multiplied = qw(3 5 7) x 3;