Skip to main content

~/discoveries

Short finds: snippets, demos, and link-outs. Not full posts.
[media]

Wayfare: trip context over MCP and OAuth

Travel bucket list and savings tracker. Same trip data in Claude, Cursor, and ChatGPT, per user via OAuth.

Built partly to learn MCP OAuth and how to ship a secure, production-ready MCP server. Connect once, and each assistant only sees your trips and fund.

[snippet]

Kafka tombstones via console producer

Key + null value = tombstone. Use null.marker so the CLI can send it.

bin/kafka-console-producer.sh --bootstrap-server localhost:9092 \
  --topic my-compacted-topic \
  --property parse.key=true \
  --property key.separator=: \
  --property null.marker=NULL

# Then type: user123:NULL

Compacted topics need a null value to delete a key. The console producer’s null.marker makes that one line instead of a custom producer.

[snippet]

Delete logs older than 7 days with find

find + -mtime + -delete is safer than a recursive rm when you scope the path.

find /var/log/myapp -type f -name "*.log" -mtime +7 -print
# review the list, then:
find /var/log/myapp -type f -name "*.log" -mtime +7 -delete

Always -print first. -delete only after you’ve confirmed the match set.