Skip to content

Instantly share code, notes, and snippets.

View ivan's full-sized avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@ivan
ivan / 2024_reading.md
Last active May 8, 2024 07:14
2024 reading list
@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
@ivan
ivan / Anti-information.md
Created September 11, 2023 01:57
Anti-information

Not good information

@ivan
ivan / devtools command.js
Last active March 25, 2024 18:44
Improve column layout in qbittorrent webui
for (const [k, v] of Object.entries(JSON.parse('{"sorted_column_torrentFilesTableDiv":"name","column_uploaded_visible_torrentsTableDiv":"1","column_save_path_visible_torrentsTableDiv":"1","column_last_activity_visible_torrentsTableDiv":"1","column_added_on_width_torrentsTableDiv":"143","column_total_size_width_torrentsTableDiv":"66","column_num_seeds_width_torrentsTableDiv":"54","column_tracker_width_torrentsTableDiv":"228","selected_filter":"all","column_save_path_width_torrentsTableDiv":"590","column_port_width_torrentPeersTableDiv":"57","reverse_sort_torrentFilesTableDiv":"0","column_relevance_width_torrentPeersTableDiv":"73","column_size_width_torrentsTableDiv":"68","reverse_sort_torrentsTableDiv":"1","column_num_leechs_width_torrentsTableDiv":"57","sorted_column_torrentsTableDiv":"upspeed","columns_order_torrentsTableDiv":"priority,state_icon,name,size,total_size,progress,status,num_seeds,num_leechs,dlspeed,upspeed,uploaded,eta,ratio,added_on,last_activity,category,tags,completion_on,tracker,save_path,dl
@ivan
ivan / README.md
Created December 24, 2023 06:29
I just need to find a good game to play

Game reviews of things I'm trying EOY 2023 - early 2024

@ivan
ivan / dig.txt
Created March 15, 2024 16:03
dig -t TXT google.com
# dig -t TXT google.com
; <<>> DiG 9.18.24 <<>> -t TXT google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13779
;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
@ivan
ivan / freerdp-dpi-help.md
Last active March 15, 2024 09:50
Use FreeRDP with non-standard DPI
xfreerdp /dynamic-resolution +decorations +fonts +aero +window-drag +multitransport /bpp:16 /rfx /codec-cache:rfx /video /scale-desktop:172 /scale-device:100

172% is the scaling factor we want.

/scale-device:100 is required because fucking Microsoft: "desktopScaleFactor (4 bytes): A 32-bit, unsigned integer. The requested desktop scale factor. This value MUST be ignored if it is less than 100% or greater than 500% or deviceScaleFactor is not 100%, 140%, or 180%. If this field is present, then the desktopOrientation and deviceScaleFactor fields MUST also be present."

https://msdn.microsoft.com/en-us/library/cc240510.aspx

@ivan
ivan / never buy a cheap refrigerator.sh
Last active March 10, 2024 01:27
Fridge software thermostat using Home Assistant + Zooz ZSE44 + Zooz ZEN15 800LR
#!/usr/bin/env zsh
# We use zsh instead of bash so that decimals work in $(( ))
set -eu -o pipefail
ha="http://192.168.10.2:8123"
# Expires 2034
token="..."
@ivan
ivan / 2023_reading.md
Last active March 9, 2024 00:47
2023 reading list

[This page is best viewed with https://github.com/ludios/expand-everything, which will load all the comnents below.]

Wherein I try to prioritize reading for the limited amount of time I have this year, and to remind myself to read more than just comments on the Internet. Because of problems of time and shifting interests, I will consider this a success if I read a third of the list. I'll reflect on the reading and deviations from the plan in Jan 2024.

{+} = added after initial planning

@ivan
ivan / about:config prefs
Last active February 26, 2024 07:19
Firefox settings and extensions
# Disable about:config warning
general.warnOnAboutConfig -> false
# Start up with tabs from last session
browser.startup.page -> 3
# Use blank new tab page
browser.newtabpage.enabled -> false
# Denser UI