Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@kj800x
kj800x / Hacking the LG Monitor's EDID.md
Last active March 18, 2024 05:21
Hacking the LG Monitor's EDID

preface: Posting these online since it sounds like these notes are somewhat interesting based on a few folks I've shared with. These are semi-rough notes that I basically wrote for myself in case I ever needed to revisit this fix, so keep that in mind.

I recently bought an LG ULTRAGEAR monitor secondhand off of a coworker. I really love it and it's been great so far, but I ran into some minor issues with it in Linux. It works great on both Mac and Windows, but on Linux it displays just a black panel until I use the second monitor to go in and reduce the refresh rate down to 60 Hz.

This has worked decent so far but there's some issues:

  • It doesn't work while linux is booting up. The motherboards boot sequence is visible just fine, but as soon as control is handed over to Linux and I'd normally see a splash screen while I'm waiting for my login window, I see nothing.
  • It doesn't work on the login screen. This would be fine if login consistently worked on my second screen, but I need to manually switch
https://mobile-riv.api.belgianrail.be/riv/v1.0/journey?trainFilter=S203061&originExtId=8833134&destExtId=8833001&date=2023-02-10&time=11%3A53%3A00&lang=nl
{
"Trip": [
{
"LegList": {
"Leg": [
{
"Destination": {
"Notes": {
https://mobile-riv.api.belgianrail.be/api/v1.0/dacs?query=DeparturesApp&UicCode=8833134&FromDate=2023-02-10%2011%3A51%3A23&Count=100
{
"count": 4,
"entries": [
{
"CommercialType": "S20",
"Destination1UicCode": "8833001",
"DestinationFr": "Heverlee Louvain",
"DestinationNl": "Heverlee Leuven",
https://mobile-riv.api.belgianrail.be/riv/v1.0/journey/detail?id=1%7C4695%7C3%7C80%7C10022023&lang=nl
{
"Directions": {
"Direction": [
{
"routeIdxFrom": 0,
"routeIdxTo": 12,
"value": "Lier & Antwerpen-Centraal"
}
https://mobile-riv.api.belgianrail.be/riv/v1.0/journey?originExtId=8833001&destExtId=8821006&lang=nl&date=2023-02-10&time=11%3A48%3A51&searchForArrival=0&originWalk=1%2C%2C2000&originBike=0&originCar=0&destWalk=1%2C%2C2000&destBike=0&destCar=0&minChangeTime=0&products=116&economic=0&numF=6
{
"Trip": [
{
"LegList": {
"Leg": [
{
"Destination": {
"Notes": {
@rena2019
rena2019 / deutschlandticket.md
Last active April 9, 2024 18:37
DeutschlandTicket Anomalien

DeutschlandTicket Anomalien

Einige DeutschlandTickets sind anders als die anderen. Preislich soll es für 49EUR starten und für ganz Deutschland einen bestimmten Featureset mitbringen. Folgende Verkehrsverbunde wollen allerdings Zusatzoptionen anbieten:

Falls Ihr noch weitere kennt: einfach unten als Kommentar oder via Twitter ergaenzen

  • Dresdner Verkehrsbetriebe AG (DVB) @ Verkehrsverbund Oberelbe (VVO) bzw siehe PDF vom VVO
    • Deutschlandticket Plus Mitnahme (+10 EUR)
      Berechtigt zur Mitnahme im Verkehrsverbund Oberelbe (VVO) von einem Hund oder einem Fahrrad ohne zeitliche Einschränkung sowie einem weiteren Erwachsenen und bis zu vier Schülern bis zum 15. Geburtstag von Montag bis Freitag zwischen 18 und 4 Uhr sowie ganztags an Wochenenden und Feiertagen.
@weiland
weiland / readme.md
Created September 24, 2022 14:03
ScotRailFreeWiFi
@weiland
weiland / readme.md
Last active February 10, 2024 07:41
EurostarTrainsWifi
@derhuerst
derhuerst / _.md
Last active March 31, 2024 17:01
curl-based HTTP mirroring script

curl-based HTTP mirroring script

This is a script that creatively uses the curl CLI to download an HTTP resource (colloquially "file"); It saves time & bandwidth whenever possible, but not at the expense of correctness.

  • Compares ETags to make sure that an unchanged resource is not transfered again, but a changed resource always is.
  • Requests a CE-coded (a.k.a. compressed, e.g. gzipped) representation of the resource, falling back to the "regular" one.
  • Supports continuation, using conditional requests, but in contrast to the -C - curl flag works with CE-coded responses, and falls back to a "full body" request.

People asked me: Why not use wget for this?

// http://cdwifi.cz/portal/api/timetable/connexion/current?locale=en_GB
{
"id": 515,
"name": "IC 515 Pendolino",
"line": null,
"connexionTimes": [
{
"id": 353,
"timeArrival": null,
"timeDeparture": "2022-05-13T14:27:00+02:00",