Skip to content

Instantly share code, notes, and snippets.

how to download a video from the orf tvthek

  • open the tvthek page with the video you want to download
  • open the dev tools
    • open the network tab
    • search for 'playlist'
    • open playlist.m3u8, and open the 'response' tab
    • look for the highest given bandwidth (usually at the bottom, e.g. #EXT-X-STREAM-INF:BANDWIDTH=3192000)
    • copy the url below that, open it in a new browser tab and download it (e.g. https://apasfiis.sf.apa.at/ipad/cms-worldwide_abr/.../chunklist.m3u8&ip=...)
  • open bash
@sk22
sk22 / edit-web-page-bookmark.js
Created December 28, 2018 00:32
Bookmark to make a web page editable
javascript:(function(){document.body.contentEditable=document.body.contentEditable==="true"?"false":"true"})()
@sk22
sk22 / spotify-links-to-uris.sed
Last active December 26, 2018 11:12
Converts Spotify links to Spotify URIs
// Linux:
clear; for f in *.flac; do ffmpeg -y -i "$f" -acodec libmp3lame -ab 320k "${f%.flac}.mp3"; done
// Windows:
forfiles /c "ffmpeg -y -i @file -map_metadata 0 -id3v2_version 3 -ab 320k @fname.mp3"
@sk22
sk22 / minegit-concept.md
Created December 25, 2018 22:12
Concept for a Git-like versioning system for Minecraft
/git area set kitchen 0 0 0 100 100 100
/git checkout -b feature/interior
/git add kitchen
/git commit -m "Add bench"
/git add ~ ~ ~ ~2 ~2 ~2
/git commit -m "Add chair"
/git checkout develop
/git pull-request feature/interior

Keybase proof

I hereby claim:

  • I am sk22 on github.
  • I am sk22 (https://keybase.io/sk22) on keybase.
  • I have a public key ASAisSoDzm9RVgxqZwJ9CGWo48abU0NPT_aOCFEP9RXMzAo

To claim this, I am signing this object:

create or replace FUNCTION PLUE2_CHANGE_DEPT_ID (
p_first_name employees.first_name%type
) RETURN BOOLEAN AS
p_dept employees.department_id%type;
p_count NUMBER;
BEGIN
SELECT count(*) INTO p_count FROM employees WHERE first_name = p_first_name;
IF p_count = 0 THEN
RETURN FALSE;
END IF;
@sk22
sk22 / make-adb-root-cat.sh
Last active November 4, 2018 20:08
Make ADB script for outputting a file with root
#!/bin/bash
# ./make-adb-root-cat.sh # call the script that generates the remote script
# /data/data/com.whatsapp/databases/msgstore.db # supply the path to the file to output
# | adb shell # send the script to the android device
# > msgstore.db # save the output to a file
# `su -c 'cat filename'` is the command sent to the device
# requires the device to be rooted
@sk22
sk22 / chromium-snap-desktop-generator.sh
Last active January 30, 2023 14:09
Generate desktop files based for Web Applications using a Snapcraft installation of Chromium
#!/bin/bash
base="$HOME/snap/chromium/current/.config/chromium/Default/Extensions"
desktops="$HOME/.local/share/applications"
chromium="/snap/bin/chromium"
# ./generator.sh ... Lists all installed Chromium Apps
# ./generator.sh [id] ... Installs Chromium app with given App ID to user applications
if [ $# = 0 ]; then
@sk22
sk22 / 2018-09-13-kartenspiel.md
Last active April 2, 2019 05:34
Kartenspiel für den GAD-Unterricht

Todsünde: Hochmut, Stolz

Karten (französisches Blatt, 52 Karten)

Experience

  • Stolz auf Wert der Karten
  • Gefühl, besser zu sein, als alle anderen
  • Risiko, das man durch Hochmut eingeht