Skip to content

Instantly share code, notes, and snippets.

@rena2019
rena2019 / wickie.bat
Created February 22, 2024 16:57
Wickie und die starken Männer - Mediathek Download Skript
@REM https://www.zdf.de/serien/wickie-classics
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/06/170625_0600_sendung_wki/1/170625_0600_sendung_wki_3360k_p36v15.mp4 --output S01E01_Der_Wettlauf.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/07/170702_0600_sendung_wki/1/170702_0600_sendung_wki_3360k_p36v15.mp4 --output S01E02_Die_Falle.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/07/170709_0600_sendung_wki/1/170709_0600_sendung_wki_3360k_p36v15.mp4 --output S01E03_Die_Flucht.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/07/170716_0600_sendung_wki/1/170716_0600_sendung_wki_3360k_p36v15.mp4 --output S01E04_Der_hohle_Zahn.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/07/170723_0600_sendung_wki/1/170723_0600_sendung_wki_3360k_p36v15.mp4 --output S01E05_Der_Schreckliche_Sven.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/07/170730_0600_sendung_wki/1/170730_0600_sendung_wki_3360k_p36v15.mp4 --output S01E06_Uebers_Ohr_gehauen.mp4
curl https://nrodlzdf-a.akamaihd.net/dach/zdf/17/08/1
@rena2019
rena2019 / threads_post.py
Last active February 18, 2024 12:47
Post @ Threads with Selenium
def threads_post(account="", pwd="", post="", display=False):
#2024-02-18 threads post (with selenium)
# TODO replace sleep with wait
# try:
# element = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "tag_id"))
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.keys import Keys
@rena2019
rena2019 / es_war_einmal.bat
Last active March 25, 2024 17:05
Downloadskript für die ersten 3 Staffeln "Es war einmal der Mensch"
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0635_sendung_esw/4/231202_0635_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E01_Eine_neue_Welt_entsteht.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0700_sendung_esw/1/231202_0700_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E02_Die_Neandertaler.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0725_sendung_esw/1/231202_0725_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E03_Ein_Mensch_aus_Cro-Magnon.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0750_sendung_esw/1/231202_0750_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E04_Macht_euch_die_Erde_untertan.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0815_sendung_esw/1/231202_0815_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E05_Die_ersten_Weltreiche.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0840_sendung_esw/1/231202_0840_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E06_Die_Zeit_des_Perikles.mp4
curl https://nrodlzdf-a.ak
@rena2019
rena2019 / create_bsky_post_with_link.py
Created October 22, 2023 16:48
Create Bluesky post with link
# python -m pip install atproto
# https://atproto.blue/en/latest/readme.content.html#installing
from atproto import Client, models
client = Client()
profile = client.login('xxxxxx.bsky.social', 'APP-PASSWORD')
client.com.atproto.repo.create_record(
models.ComAtprotoRepoCreateRecord.Data(
repo=client.me.did,
collection=models.ids.AppBskyFeedPost,
record=models.AppBskyFeedPost.Main(created_at=client.get_current_time_iso(),
@rena2019
rena2019 / mympitest.py
Created August 25, 2023 21:38
mpi.install Test
def mympitestfunc():
return 123
@rena2019
rena2019 / Dockerfile
Last active June 15, 2023 20:52
Dockerfile for Linux @ ESP32-S3
# Booting linux on ESP32s3
# http://wiki.osll.ru/doku.php/etc:users:jcmvbkbc:linux-xtensa:esp32s3
#################
# docker build -t esp32linux -f Dockerfile .
# docker run -it --name esp32linux esp32linux
FROM ubuntu:22.04
# ubuntu:20.04 does not work because autoconf 2.xx ist required
RUN apt-get update && apt-get install git build-essential autoconf flex texinfo unzip help2man file gawk wget bison libncurses-dev -y
WORKDIR /myapp
#ubuntu 22.04: libtool 2.4.6-15build2
#!/bin/bash
# https://www.zdf.de/serien/killing-eve
wget -O S01E01_Nettes_Gesicht.mp4 https://tvdlzdf-a.akamaihd.net/de/zdf/23/03/230324_2305_sendung_kev/1/230324_2305_sendung_kev_a1a2_6660k_p37v17.mp4
wget -O S01E02_Ihn_werde_ich_spaeter_los.mp4 https://nrodlzdf-a.akamaihd.net/de/zdf/23/04/230401_0005_sendung_kev/1/230401_0005_sendung_kev_a1a2_6628k_p61v17.mp4
wget -O S01E03_Ich_kenn_Sie_doch.mp4 https://nrodlzdf-a.akamaihd.net/de/zdf/23/03/230325_0030_sendung_kev/1/230325_0030_sendung_kev_a1a2_6628k_p61v17.mp4
wget -O S01E04_Sorry_Baby.mp4 https://nrodlzdf-a.akamaihd.net/de/zdf/23/03/230325_0110_sendung_kev/1/230325_0110_sendung_kev_a1a2_6628k_p61v17.mp4
wget -O S01E05_Ich_habe_eine_Vorliebe_fuer_Badezimmer.mp4 https://tvdlzdf-a.akamaihd.net/de/zdf/23/03/230325_0155_sendung_kev/1/230325_0155_sendung_kev_a1a2_6660k_p37v17.mp4
wget -O S01E06_Steckt_mich_ins_Loch.mp4 https://tvdlzdf-a.akamaihd.net/de/zdf/23/03/230325_0235_sendung_kev/1/230325_0235_sendung_kev_a1a2_6660k_p37v17.mp4
wget -O S01E07_Ich_will_nicht
@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.
@rena2019
rena2019 / mynfctool.py
Created December 19, 2022 08:37
nfc helper script
# PC companion to MyNFCTestApp
# connect to an Android device that is connected via adb tunnel
#
# connect vai adb
# -------------------------------------------------
# set PATH=D:\tools\platform-tools;%PATH%
# # switch to adb wifi connection -----------------
# adb devices
# (e.g. 773X12X6M)
# adb -s 773X12X6M shell ip -f inet addr show wlan0
--- myssh ---------------------------------------------
#Probleme:
#1. ohne das "-v /sys/fs/cgroup" (geht das auch unter Windows?) gibt es
# Problemen im Container mit service: /lib/rc/sh/openrc-run.sh: line 108: can't create /sys/fs/cgroup
#2. durch das erforderliche setzen des "passwd root" (mit Passwort Eingabe) ist das Dockerfile nicht none-interactive
# docker run -p 8080:8080 -p 8022:22 -v /sys/fs/cgroup -it --name myssh alpine /bin/sh
#für novnc: docker run -p 7900:7900 -p 4900:4900 -p 8080:8080 -p 8022:22 -v /sys/fs/cgroup -it --name myssh alpine /bin/sh