- httpie
- jq
- TikTok Account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Elixir development environment (atm mainly for macOS)."; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
}; | |
outputs = inputs@{ flake-parts, ... }: | |
flake-parts.lib.mkFlake { inherit inputs; } { | |
imports = [ |
- Router: http://192.168.101.1/
- MyIP: 192.168.103.193/
- Captive: http://192.168.10.2/index.php (192.168.10.2)
- XHRs:
http://scotrailwifi.cms.nomadrail.com/jq.php?position
{
-
Paris -> London
-
rather slow
-
VD
-
Router: 10.8.2.4
-
Captive: https://register.onboard.eurostar.com/ (10.8.2.4)
Login:
curl 'https://fahrkarten.bahn.de/mobile/dbc/xs.go?' -X POST \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0' -H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: https://www.img-bahn.de/' -H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Origin: https://www.img-bahn.de' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' \
--data-raw $'<?xml version="1.0" encoding="UTF-8"?>\n<rqorderdetails version="1.0"><rqheader tnr="1653325251391" ts="2022-05-23T19:00:51" l="de" v="19120000" os="KCI" app="KCI-Webservice"/><rqorder on="GCP344"/><authname tln="LeMe" csc="" cui=""/></rqorderdetails>'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://wifi.normandie.fr/router/api/train/circulation | |
{ | |
"number": "3105", | |
"circulationCode": "66979ae819749c3a785adc4e657a3fbe", | |
"origin": { | |
"name": "Paris Saint-Lazare", | |
"code": "OCE87384008" | |
}, | |
"destination": { | |
"name": "Le Havre", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://onboard.sbb.ch/api/v2/content?tag=versioned_flavour_config&tag=v3&lang=en&r=1649759266348&contentType=mpd | |
[ | |
{ | |
"id": "flavour_config_sbb_v3", | |
"contentType": "versioned_flavour_config", | |
"domain": [ | |
"staging-auth.sbb.gomedia.io", | |
"sbb.mst.gonet", | |
"test-sbb.mst.gonet", | |
"sbb.stg.gonet", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.portalefrecce.it/BobHttpLogger/status/train | |
// somtimes comes as XML or JSON | |
{ | |
"BobStatus": { | |
"Train": { | |
"Id": "9653", | |
"Token": "IhRbCoYDMQDm0OVbZbIqXw==", | |
"MealStatus": "on" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S deno run --allow-run --quiet | |
// Collect 5 complete days from the last working month for reporting. | |
// Everything this or higher adresses the current month. | |
const MIN_DAY = 27; | |
const WORK_DAYS:Array<number> = [3, 5]; // ['Wendnesday', 'Friday'] | |
const JANUARY = 0; | |
const DECEMBER = 11; | |
const MAX_DAYS = 31; |
NewerOlder