Skip to content

Instantly share code, notes, and snippets.

View CTimmerman's full-sized avatar
💭
Amazed at Microsoft's poor UX.

Cees Timmerman CTimmerman

💭
Amazed at Microsoft's poor UX.
View GitHub Profile
@CTimmerman
CTimmerman / README.md
Created September 24, 2025 17:49 — forked from eseiler/README.md
Remove Phantom Notifications

Remove Phantom Notifications on GitHub

This tool helps you clean up GitHub notifications from repositories that no longer exist ("phantom notifications"), which can clutter your notification feed.

The Node.js script comes from this GitHub Community discussion with minor modifications to console output.

Compatibility

  • The Node.js script works on any platform that supports Node.js
  • The integration shown in these instructions uses bash as the shell, but the concepts can be adapted to other shells (zsh, fish, etc.)
@CTimmerman
CTimmerman / Mtg_notes.md
Last active October 6, 2025 15:58
Magic: The Gathering notes

Magic: The Gathering is the first and most popular collectible trading card game, released by Wizard of the Coast in 1993 and expanded multiple times a year, even outsourcing its lore now with Universes Beyond cards from for example Warhammer 40,000. Only official white- or black-bordered cards without acorn stamps are valid in tournament play.

100-card singleton (only basic lands can have any number), 40-life, 4-player games are most popular. This format is called Commander, or Elder Dragon Highlander (EDH) originally. Your deck then has one legendary creature as leader in the command zone, costing 2 mana more for each time it has been cast from there, and can be returned to there if it changes zone. Hand, battlefield, graveyard, exile, and library are also zones, sometimes denoted on a playmat. 21+ damage from the same commander card is lethal, no matter one's life total. There are 5 colors of mana

@CTimmerman
CTimmerman / GNU_Linux_sucks.md
Last active September 19, 2025 10:10
GNU/Linux sucks.
@CTimmerman
CTimmerman / Warhammer40k_notes.md
Last active January 24, 2025 12:50
Warhammer 40k notes

Craft

Buy

@CTimmerman
CTimmerman / psd.ksy
Created June 9, 2024 10:20 — forked from ertaquo/psd.ksy
Photoshop format definition (incomplete) for Kaitai Struct
meta:
id: psd
file-extension: psd
endian: be
seq:
- id: file_header
type: file_header
- id: color_mode_data
type: color_mode_data
- id: image_resources
@CTimmerman
CTimmerman / FixRealtekPoppingSound.ps1
Created January 16, 2024 19:16 — forked from supermarsx/FixRealtekPoppingSound.ps1
Fix popping sound on some Realtek sound cards, realtek audio crackling patch
# Enable Realtek driver power management, this is the default value
REG ADD "HKCU\Software\Realtek\RAVCpl64\PowerMgnt" /v "Enabled" /t REG_DWORD /d 1 /f
# Disable Realtek driver power management, sometimes fixes realtek popping sound
REG ADD "HKCU\Software\Realtek\RAVCpl64\PowerMgnt" /v "Enabled" /t REG_DWORD /d 0 /f
# Replace XXXX with the corresponding key that has "Realtek" in the "DriverDesc", find using regedit
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}\XXXX\PowerSettings" /v "IdlePowerState" /t REG_BINARY /d "ffffffff" /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}\XXXX\PowerSettings" /v "PerformanceIdleTime" /t REG_BINARY /d "ffffffff" /f
# Example if class is in 0000
@CTimmerman
CTimmerman / epi_sir_basic.ipynb
Last active January 21, 2022 15:13 — forked from jph00/epi_sir_basic.ipynb
Basic SIR epidemic model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CTimmerman
CTimmerman / youtube-dl.py
Last active September 19, 2021 03:22
YouTube Stream Downloader
"""YouTube Stream Downloader
2021-08-16 v1.0 by Cees Timmerman
2021-09-18 v1.1 Better error handling. Revert to XML captions as conversion to SRT is broken in pytube 11.0.1 for https://www.youtube.com/watch?v=AOZw1tgD8dA
"""
import logging, os, re
import pytube
from pytube.cli import on_progress
@CTimmerman
CTimmerman / CollatzConjecture3n+1.py
Created July 31, 2021 10:15
Collatz conjecture
"""Collatz conjecture. Inspired by https://www.youtube.com/watch?v=094y1Z2wpJg
2021-07-31 by Cees Timmerman
"""
def collatz(n: int) -> int:
return 3*n+1 if n%2 else n//2
def collatz_count(start: int) -> int:
step = 0
while True:
@CTimmerman
CTimmerman / SolarHydrogenFusionPower.md
Last active September 24, 2025 18:51
Water & Power

Heat and power

I have district heating from a combined heat and power plant, which should be 80+% efficient. A solar air to water heat pump could be more efficient at 29% * usually 200% but sometimes 400% (For reference, traditional gas boilers only go up to 94%.) = 58% to 116%, the latter might require ground instead of air. CO2 is a relatively safe refrigerant.

According to ChatGPT: The efficiency of a typical modern steam turbine in a power plant is around 30-40%. Fuel cells can achieve efficiencies in the range of 40% to 60% or even higher for solid oxide fuel cells (SOFCs). Those and molten carbonate fuel cells (MCFCs) are used in combined hea