Skip to content

Instantly share code, notes, and snippets.

View ivan's full-sized avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@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.
@ivan
ivan / Lights that I will be reviewing.md
Last active August 28, 2025 07:12
Lights that I will be reviewing
@ivan
ivan / Zebralight H604c wanted.md
Last active August 24, 2025 13:22
Zebralight H604c wanted

This is a public gist expressing my interest in purchasing a Zebralight H604c from anywhere in the world. I can arrange for whatever pickup or shipping method works for you.

By the time you see this, this gist may be old, but I am still interested.

[email protected]

@ivan
ivan / headlamp slop.md
Created August 20, 2025 13:52
headlamp slop.md

Please find a replacement for my Zebralight H604c flood headlamp, that I can purchase today. That one has a Cree XHP50.2 LED, which was good in 2021 with no green tint; produced later it has a green tint. I want a 3500K-4000K flood headlamp with no green tint which takes one 18650 battery and has a good headband. The flood part is very important; no beam, just a bare LED that illuminates everything in front of me. Like a Zebralight H604c, which I can't purchase any more anywhere now. I rely on the headlamp all day long... maybe look into specialty headlamp vendors for industry or cavers.

ChatGPT said:

Thanks for the detailed request—it helps a lot. Just to be sure I find the best options for you, could you please clarify the following:

  1. Is high CRI (color rendering index) important to you for accurate color perception?

  2. Do you have a preferred beam angle or lumen range?

@ivan
ivan / ViewSonic VP2788-5K thoughts.md
Created May 14, 2025 05:10
ViewSonic VP2788-5K thoughts

ViewSonic VP2788-5K thoughts:

  • The stand is very solid, but not really usable if you don't want the bottom of your 27" monitor to be at minimum 6 cm above your desk.
  • It's far too bright at 0% brightness. Like a VX2475Smhl-4K at 35% brightness. Feels like I'm looking at a TV.
  • It ships with defaults that apply sharpening to the input ("Ultra Clear"), but it's easy to turn off.
  • The OSD is operated via a usable joystick button, but it's in the wrong place, below the bezel.
  • The power button—with a very similar shape—is right next to the OSD button.
  • There's no G-SYNC or FreeSync.
  • When run at 75 Hz, the frame pacing in 60 Hz games is (of course) a mess. Tested: The Witness.
  • Maybe it is good for doing photography or video work if you run it at 60 Hz and don't mind the lumens and the backlight bleed?
function sum<T extends number | bigint>(a: T, b: T): T extends number ? number : bigint {
// @ts-expect-error
return a + b;
}
function sumo(a: number, b: number): number;
function sumo(a: bigint, b: bigint): bigint;
function sumo(a: number | bigint, b: number | bigint): number | bigint {
// @ts-expect-error
return a + b;
function sum<T extends number | bigint>(a: T, b: T): T extends number ? number : bigint {
// @ts-expect-error
return a + b;
}
@ivan
ivan / gist:d13fa94c94487335973a2b96795b9bcf
Last active May 11, 2025 08:13
Recreating all of your PostgreSQL periods history tables
-- for each table
psql --quiet --no-psqlrc --echo-errors -c "COPY rgp.accessions_history TO STDOUT" > accessions.tsv
SELECT periods.drop_system_versioning('rgp.accessions');
DROP TABLE rgp.accessions_history;
-- once
DROP EXTENSION periods CASCADE;
CREATE EXTENSION periods;
@ivan
ivan / Coreinfo.txt
Created April 8, 2025 19:19
Coreinfo for a 9950X3D on Windows 10 22H2
c:\opt\Coreinfo>Coreinfo64.exe
Coreinfo v3.6 - Dump information on system CPU and memory topology
Copyright (C) 2008-2022 Mark Russinovich
Sysinternals - www.sysinternals.com
AMD Ryzen 9 9950X3D 16-Core Processor
AMD64 Family 26 Model 68 Stepping 0, AuthenticAMD
Microcode signature: 00000000
@ivan
ivan / firefox.org.txt
Created August 23, 2024 07:06
Firefox/Floorp things
* Floorp advantages over Chrome
** Padding isn't crazy in the bookmarks and menus
** Tree Style Tab
** Ctrl-Tab in MRU order
** Doesn't plan to remove Manifest V2 and break uBlock Origin
** Can use address bar and bookmarks while in fullscreen
** If tab is open, pressing Enter on suggestion switches to tab; don't need to Tab over to the 'switch to tab' suggestion as in Chrome
** Zooming on an image (loaded in its own tab) doesn't change the zoom level for the domain
** Supports JPEG XL
** Can alt-double and triple click inside links to select text and not download the link target