Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@derhuerst
derhuerst / list.md
Last active March 10, 2025 14:52
VPS price & performance comparison

Geekbench 5

product notes price (incl. VAT) dedic.? cores RAM SSD Geekbench ST Geekbench MT Geekbench version operating system date of benchmark
Hetzner CX11 3,92€/m no 1 2GB 20GB 691/710 686/712 5.x ? 2023-05-20
Hetzner CPX11 4,75€/m no 2 2GB 40GB 869/856 1631/1626 5.x ? 2021-10-03
Hetzner CPX11 4,58€/m no 2 2GB 40GB 1118/1100 2129/[2131](https://b
@derhuerst
derhuerst / uic-barcodes.md
Last active February 25, 2025 23:52
how UIC barcodes work

from the Digital Security Elements for Rail Passenger Ticketing technical document:

The whole security system is based on asymmetrical key pairs: Private and Public keys. To ensure the autenthicy of the public keys the keys shall be certified by a certification authority and the certificates exchanged for the ticket control precedures.

These keys are generated on a regular base (e.g. every 6 months) by the party that wants to encrypt data using such a key ("the security provider"). To enable decryption of the encoded data, the corresponding certificate should be made available to every TCO (Ticket Controlling Organisation)

AZTEC is the better one of both because of error-correction, readability in difficult conditions and the fact that it is more variable in size. The reason that the PDF417 barcode (a so called “Stacked linear barcode”) is still in t

@derhuerst
derhuerst / journeys
Last active February 7, 2025 14:55
SBB HAFAS query.exe encoding
queryPageDisplayed=yes
start=yes
HWAI=JS!ajax=yes
HWAI=JS!js=yes
HWAI=~CONNECTION!
REQ0Total_KissRideMotorClass=404
REQ0Total_KissRideCarClass=5
REQ0Total_KissRide_maxDist=10000000
REQ0Total_KissRide_minDist=0
REQComparisonCarload=0
@derhuerst
derhuerst / cheese-grater.py
Created February 4, 2025 22:42
cheese grater pattern in build123d
import logging
import math
from build123d import *
logging.basicConfig(level=logging.WARN)
from yacv_server import show
# %%
hole_diameter = 20
board_x, board_y = 400, 120
@derhuerst
derhuerst / intro.md
Last active February 4, 2025 12:54
Installing Git on Linux, Mac OS X and Windows
@derhuerst
derhuerst / config.txt
Created March 3, 2020 01:21
VBN HAFAS Android app config
DATA_VERSION=4
BASE_QUERY=fahrplaner.vbn.de/bin
BASE_HAITI=
BASE_GISHOST=
GETPARAMS=ld,checksum,mic,mac
SEARCH_METHOD=ONLINE
GLOBAL_OFFLINE_SWITCH=0
USE_OFFLINE_DATA=0
USE_OFFLINE_STATIONS_ONLY=0
KERNEL_PRODUCT_FORMAT=0
@derhuerst
derhuerst / _.md
Last active January 13, 2025 19:24
List of HAFAS API Endpoints
@derhuerst
derhuerst / _.md
Created September 12, 2024 11:43
Acer Predator XB283K KV monitor review

Acer Predator XB283K KV monitor review

pro

  • as of late 2023, for 500€, good value!
  • refresh rates >60hz are amazing, i’m hooked now! – why aren’t there slightly cheaper 90hz monitors for office work?
  • for a gaming monitor (🙄), it looks quite okay

contra