Skip to content

Instantly share code, notes, and snippets.

View ivan's full-sized avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@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
@ivan
ivan / userChrome.css
Created July 31, 2024 06:37
userContent.css and userChrome.css for Firefox / Floorp
/*************************************************************************************************************************************************************************************************************************************************************
"userChrome.css" is a custom CSS file that can be used to specify CSS style rules for Floorp's interface (NOT internal site) using "chrome" privileges.
For instance, if you want to hide the tab bar, you can use the following CSS rule:
**************************************
#TabsToolbar { *
display: none !important; *
} *
@ivan
ivan / github-users-starknet-rewards.tsv
Created March 25, 2024 23:02
All GitHub users rewarded STRK in the Starknet airdrop, most-rewarded first
We can't make this file beautiful and searchable because it's too large.
13911.1 swader
13911.1 sorpaas
13911.1 s1na
13911.1 rjl493456442
13911.1 qd-qd
13911.1 protolambda
13911.1 paulrberg
13911.1 noahzinsmeister
13911.1 neurone
13911.1 moodysalem