Skip to content

Instantly share code, notes, and snippets.

Avatar

Jannis R derhuerst

View GitHub Profile
@derhuerst
derhuerst / 1-locmatch.http
Created Feb 12, 2021
ÖBB Scotty HAFAS iOS app requests
View 1-locmatch.http
POST /bin/mgate.exe?mic=f2ba9aacd5df701b65c782a1a90a8d8d&mac=e97cec963fced24ef681859165a1d4aa HTTP/1.1
Host: fahrplan.oebb.at
Content-Type: application/json
Connection: keep-alive
Accept: */*
User-Agent: oebbPROD-ADHOC/6.3.6 (iPhone; iOS 14.3; Scale/3.00)
Accept-Language: en-DE;q=1, de-DE;q=0.9
Content-Length: 268
Accept-Encoding: gzip, deflate, br
@derhuerst
derhuerst / 0-about.md
Created Feb 10, 2021
source code of "COVID-19 infection risk due to aerosols" TU Berlin webapps
View 0-about.md
@derhuerst
derhuerst / lenses.md
Last active Jan 22, 2021
researching Sony E lenses
View lenses.md

affordable lenses

with an aps-c camera:

aps-c lens:     14mm     18mm     24mm       35mm       50mm       65mm       80mm       140mm      200mm
full frame lens: 9mm     12mm     16mm       23mm       33mm       43mm       53mm        93mm      133mm
                        |--raum--|
                                 |-kl. gruppen-|
                                     |-einzelpers.--|
@derhuerst
derhuerst / 1-server-info.http
Last active Feb 17, 2021
mobil.nrw iOS app HAFAS requests
View 1-server-info.http
POST https://nrw.hafas.de/bin/mgate.exe?mic=116087c44a78cc05cdee249a12becc49&mac=456fb2c291c31db41cc7c5b52277dd91 HTTP/1.1
Host: nrw.hafas.de
Content-Type: application/json
Connection: keep-alive
Accept: */*
User-Agent: NRW/6.0.3 (iPad; iOS 12.4.9; Scale/2.00)
Accept-Language: en-DE;q=1, de-DE;q=0.9, ko-KR;q=0.8, zh-Hans-DE;q=0.7
Content-Length: 249
Accept-Encoding: br, gzip, deflate
@derhuerst
derhuerst / random.js
Last active Jan 3, 2021
stream.pipeline & pump with process.stdout 🤔
View random.js
'use strict'
const {randomBytes} = require('crypto')
const {Readable, PassThrough, pipeline} = require('stream')
const pump = require('pump')
const random = (amount) => {
let bytes = 0
function read (size) {
size = Math.min(size, amount - bytes)
@derhuerst
derhuerst / bookshelf.worker.js
Created Dec 21, 2020
tolino web reader (webreader.mytolino.com) source code
View bookshelf.worker.js
!function(e) {
var t = {};
function n(r) {
if (t[r])
return t[r].exports;
var o = t[r] = {
i: r,
l: !1,
exports: {}
};
@derhuerst
derhuerst / journeys
Last active Dec 7, 2020
SBB HAFAS query.exe encoding
View journeys
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 / subscription-journey.js
Created Nov 28, 2020
journey from HAFAS subscription
View subscription-journey.js
{
sDays: {
sDaysR: 'runs 28. Nov until 11. Dec 2020 ',
end: '2021-12-11T01:00:00Z',
begin: '2019-12-15T01:00:00Z',
sDaysB: 'FFFFFFFFFFFFFFFFF8000000000038000000000000000000000000000000000000000000000000003FFFFFFFFFE0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
},
conSubscr: 2,
dep: {
aOutS: 1,
@derhuerst
derhuerst / positions.json
Created Nov 27, 2020
VVS Livekarte requests
View positions.json
[
{
"id": "290037010",
"journeyIdentifier": "5030039",
"currentStop": "5005631#1#4",
"delay": 1,
"delayInSeconds": 63,
"direction": "Feuerbach",
"line": "Bus 503",
"latitude": 48.929165,