Skip to content

Instantly share code, notes, and snippets.

View luebken's full-sized avatar

Matthias Lübken luebken

View GitHub Profile
@luebken
luebken / fetch_subtitles.sh
Created April 22, 2023 14:32 — forked from teemow/fetch_subtitles.sh
fetch youtube playlist with title, description and subtitles of each video and train gpt with the information
#!/bin/bash
set -eu
FOLDER=$1
PLAYLIST=$2
rm -f playlist.txt
mkdir -p $FOLDER
yt-dlp --flat-playlist -i --print-to-file url playlist.txt $PLAYLIST
oc login -u system:admin
cat <<-EOF > /Users/mdl/tmp/pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
spec:
capacity:
storage: 1Gi