Skip to content

Instantly share code, notes, and snippets.

View sebdi's full-sized avatar

Sebastian Dingler sebdi

View GitHub Profile
@sebdi
sebdi / gist:fede0f15c6e47737dc48089720d9ee36
Last active December 30, 2025 20:19
Python script to create a youtube video from a slide deck
import os
import json
import requests
from pdf2image import convert_from_path
from pydub import AudioSegment
from pydub.utils import make_chunks
import subprocess
import time
# Configuration
# Checkout
git checkout --orphan latest_branch
# Add all the files
git add -A
# Commit the changes
git commit -am "commit message"
# Delete the branch