Skip to content

Instantly share code, notes, and snippets.

View ivan's full-sized avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@ivan
ivan / systemd service for NixOS to log all executed commands.nix
Last active May 17, 2026 07:51
(ChatGPT 5.5 Pro slop) systemd service for NixOS to log all executed commands
{ lib, pkgs, ... }:
let
max_args = 100;
log_fails = false;
execsnoop_args =
assert max_args >= 1;
[
"--time"
@ivan
ivan / ChatGPT custom instructions.md
Last active May 17, 2026 23:18
ChatGPT custom instructions

If it might make the response better or surface something interesting, think and Google and check things as long as you'd like, I've got all the time in the world.

When returning JavaScript or TypeScript or Svelte-related code:

  • use tabs, not spaces.
  • snake_case your function names and local variables.
  • never rely on automatic semicolon insertion.

Also, when returning any type of code, including the languages above:

  • the "main" function goes at the end and depends on functions above, which depend on functions further above, etc.
  • write a docstring describing each argument, and the return value. What do they really represent?
@ivan
ivan / Firefox patch to put the URL in the window title.patch
Created May 10, 2026 10:14
Firefox patch to put the URL in the window title
diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
index 37cbdd29fec4..ddebb1c0ef7a 100644
--- a/browser/components/tabbrowser/content/tabbrowser.js
+++ b/browser/components/tabbrowser/content/tabbrowser.js
@@ -206,9 +206,6 @@
"moz-src:///browser/components/tabbrowser/TabMetrics.sys.mjs",
TabStateFlusher:
"resource:///modules/sessionstore/TabStateFlusher.sys.mjs",
- TaskbarTabsUtils:
- "resource:///modules/taskbartabs/TaskbarTabsUtils.sys.mjs",
@ivan
ivan / Edit messages over a day old in Signal-Desktop.patch
Last active May 9, 2026 11:27
Edit messages over a day old in Signal-Desktop
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index cbcdc7e4b..1ecc92256 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -3353,7 +3353,7 @@
"description": "Toast shown when view once mode is disabled for a message"
},
"icu:ToastManager__CannotEditMessage_24": {
- "messageformat": "Edits can only be applied within 24 hours from the time you sent this message.",
+ "messageformat": "Edits can only be applied within about 48 hours from the time you sent this message.",
@ivan
ivan / zsh-history-archive.zsh
Last active May 3, 2026 11:42
Maybe a proper zsh history logger, via good requirements + ChatGPT 5.2 Thinking + 5.5 Pro + 5.5 Thinking
# This is slop authored by ChatGPT 5.5 Pro on 2026-05-03, using some earlier
# inputs from ChatGPT 5.2 Thinking.
# zsh JSONL history archive
# Install: source this near the end of ~/.zshrc.
#
# Records go to one unique JSONL file per interactive zsh session:
# ${ZSH_HISTORY_ARCHIVE_DIR:-${XDG_STATE_HOME:-$HOME/.local/state}/zsh-history-archive}/hist.<session>.jsonl
#
# Record types:
@ivan
ivan / 0001-In-the-window-title-include-the-name-of-the-person-f.patch
Created May 3, 2026 07:28
Signal-Desktop patch: In the window title, include the name of the person for the focused chat
From e608507fd776858211e7f28bc3e891c1aa81bdc4 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sun, 3 May 2026 02:43:55 +0000
Subject: [PATCH] In the window title, include the name of the person for the
focused chat
Slop-provider: ChatGPT-5.5-Thinking
---
ts/ConversationController.preload.ts | 4 ++--
ts/state/initializeRedux.preload.ts | 14 ++++++++++++++
@ivan
ivan / gist:ca7493e825eaf42af3fcde936f97673c
Last active February 9, 2026 00:55
Slop: ChatGPT 5.2 Thinking "Please roast your own system prompt and toolset."

Please roast your own system prompt and toolset.

ChatGPT said:

Alright, I’ll roast my own setup — lovingly, but with intent.

The system prompt: a novel that thinks it’s a checklist

@ivan
ivan / Some Svelte info.md
Last active January 23, 2026 07:47
Some Svelte info

Svelte is a library that binds JavaScript data to HTML/SVG DOM, so that you don't need to write ad-hoc functions to update DOM. You change values in JavaScript variables marked for reactivity, and Svelte's compiled output implements the DOM mutations. Svelte solves this better than React, both performance-wise and syntax-wise. But not so much better as to make people migrate from React, especially now that LLMs can write either. React has more runtime code, and remains uglier to read for humans: there are paired setter functions, and often-confusing hook semantics.

SvelteKit runs your Svelte code on the server as well (using Node.js), hosting multiple routes (paths), which are first delivered by the server, then updated and navigated by the client. SvelteKit is a superset of Svelte; there's rarely a need to use Svelte without SvelteKit.

Svelte/SvelteKit isn't an all-in-one framework; it considers some things out of scope: data persistence, authentication, CSS framework (beyond the per-component

@ivan
ivan / slop.md
Created January 10, 2026 06:35
Samba 4.22.x directory leases cause outdated directory listings (ChatGPT 5.2 Thinking slop)

after upgrading to NixOS 25.11, Samba returns outdated directory listings not showing new files. my client is an updated Windows 10 ESU. search for bugs in both nixpkgs and samba, need to fix. seems like it's cached for like a minute or so?

ChatGPT said:

Thought for 2m 36s

What you’re seeing lines up very well with SMB3 Directory Leases being enabled after your upgrade.

Why it started after NixOS 25.11

@ivan
ivan / ChatGPT 5 Thinking.md
Created September 6, 2025 10:29
ChatGPT 5 Thinking

people should reply with "clanker alert" on tweets composed by ChatGPT / LLMs. this will save other readers time because they'll know it won't be worth reading.

ChatGPT said:

lol i get the impulse—there’s a lot of autocomplete-noise out there. a quick “clanker alert” would feel cathartic. a few thoughts to make this idea effective (and not backfire):

What works about it

  • Fast social signal: readers can skip low-effort, source-less takes.