Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@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

@derhuerst
derhuerst / 01-validate.sh
Created September 9, 2024 18:56
Flixbus/Flix booking number validation HTTP call
curl 'https://help.flixbus.com/s/sfsites/aura?r=18&other.CSPaxUtilities.checkBookingNumber=1' \
-X 'POST' \
-H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.9' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15' \
--data 'message=%7B%22actions%22%3A%5B%7B%22id%22%3A%22273%3Ba%22%2C%22descriptor%22%3A%22apex%3A%2F%2FCSPaxUtilities%2FACTION%24checkBookingNumber%22%2C%22callingDescriptor%22%3A%22markup%3A%2F%2Fc%3Acs_pax_feedbackForm%22%2C%22params%22%3A%7B%22bookingNumber%22%3A%223192968124%22%7D%7D%5D%7D&aura.context=%7B%22mode%22%3A%22PROD%22%2C%22fwuid%22%3A%22eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC40LTYuNC41%22%2C%22app%22%3A%22siteforce%3AcommunityApp%22%2C%22loaded%22%3A%7B%22APPLICATION%40markup%3A%2F%2Fsiteforce%3AcommunityApp%22%3A%22wi0I2YUoyrm6Lo80fhxdzA%22%2C%22MODULE%40markup
@derhuerst
derhuerst / _.md
Created August 29, 2024 07:43
Trangia global fuel list
@derhuerst
derhuerst / _.md
Created August 21, 2024 21:18
historical VBB (Berlin/Brandenburg) GTFS datasets
@derhuerst
derhuerst / 01-location.name.http
Created August 13, 2024 00:01
ZVV iOS v2.2.1 HTTP requests
POST https://fpbe.zvv.ch/restproxy/location.name HTTP/2.0
content-type: application/x-www-form-urlencoded; charset=utf-8
accept: application/json
baggage: sentry-environment=prod,sentry-public_key=ff852a2ea3aa4350b43626abc027b8f2,sentry-release=ch.zvv.app%402.2.1%2B2,sentry-trace_id=4283b63db8e74a65b25d054abc5902a9
authorization: Basic Og==
accept-language: en-GB,en;q=0.9
accept-encoding: gzip, deflate
sentry-trace: 4283b63db8e74a65b25d054abc5902a9-0de6a46a665a4982-0
content-length: 65
user-agent: ZVVOneApp/2 CFNetwork/1498.700.2 Darwin/23.6.0
@derhuerst
derhuerst / _notes.md
Last active July 1, 2024 12:53
additional material for a talk on GTFS Pathways & GTFS-RT PathwayUpdates

GTFS Pathways

  • als pathways.txt Teil der GTFS-Schedule/Static-Spezifikation -> statische Daten
  • bildet alle Umsteigebeziehungen in einer Station (Hub) als Graph ab
    • Knoten sind Eingänge/Bahnsteige/etc.
    • Kanten sind Wege/Fahrtreppen/Aufzüge/etc.
    • Achtung: der Graph muss vollständig sein –> wenn Wege fehlen, werden diese von konsumierender Software als nicht existierend angenommen
  • existierende Feeds
    • curl 'https://storage.googleapis.com/storage/v1/b/mdb-csv/o/sources.csv?alt=media' -fsSL | qsv search -s features '\bpathways\b' | qsv select location.country_code,location.subdivision_name,provider,name
    • DE (im DELFI-GTFS): VBB (~500), MVV (~200), SSB/NVBW (~200), HVV (~130), ansonsten vereinzelt
@derhuerst
derhuerst / download.sh
Created June 24, 2024 13:54
Fusion Festival 2024 timetable/lineup
#!/bin/bash
set -eu -o pipefail
curl 'https://timetable.fusion-festival.de/static/js/346.b4b1c224.chunk.js' \
--compressed -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.5' \
-fsSL \
| node -e 'const bundle = fs.readFileSync(0, "utf8"); globalThis.self = {}; eval(bundle + ""); const chunk = self.webpackChunktimetable[0][1]; const mod = {}; chunk[Object.keys(chunk)[0]](mod); process.stdout.write(JSON.stringify(mod.exports))'
@derhuerst
derhuerst / 01-splashpage-request.json
Created May 25, 2024 14:43
ODEG WiFi portal network requests
{"operationName":"splashpage","variables":{"user_session_id":"7867e542-590c-4154-9a85-df33d5587aff","language":"en","initial":true},"query":"query splashpage($user_session_id: ID\u0021, $language: String\u0021, $initial: Boolean) {
splashpage(
user_session_id: $user_session_id
language: $language
initial: $initial
) {
error {
...Error
__typename
}
@derhuerst
derhuerst / _.md
Created February 16, 2024 10:46
ICE 645 from Essen Hbf to Berlin Spandau

For a long time, there were <6 minutes of delay. In Berlin-Spandau, a delay happened because of a medical emergency.

@derhuerst
derhuerst / ice-572-2023-11-02T19:41:02+01:00-hafas.json
Last active November 4, 2023 01:18
ICE 572 from Mannheim Hbf to Berlin Hbf
{"public":true,"mode":"train","line":{"type":"line","id":"ice-572","name":"ICE 572"},"traveledDistance":166334,"distanceToPreviousStop":4124,"totalDistance":597863,"next":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"scheduledNext":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"previous":{"type":"station","id":"8000105","name":"Frankfurt(Main)Hbf","location":{"type":"location","latitude":50.107145,"longitude":8.663789}},"last":{"type":"station","id":"8098160","name":"Berlin Hbf (tief)","location":{"type":"location","latitude":52.525592,"longitude":13.369545}},"passed":[{"station":{"type":"station","id":"8000096","name":"Stuttgart Hbf","location":{"type":"location","latitude":48.784084,"longitude":9.181635}},"arrival":null,"arrivalDelay":null,"arrivalPlatform":"9","departure":"2023-11-02T17:24:39+01:00","departureDelay":99,"departurePlatform":"9","