Skip to content

Instantly share code, notes, and snippets.

View kacmem's full-sized avatar
👾
8 бит наше всё!

Пётр Кастет kacmem

👾
8 бит наше всё!
View GitHub Profile
@kacmem
kacmem / audio_player.kv
Created April 16, 2018 10:05 — forked from natcl/audio_player.kv
Simple Kivy audio player
<MySlider@Slider>:
canvas:
Clear
Color:
rgb: (0.2, 0.2, 0.2)
Rectangle:
pos: self.pos
size: self.width, self.height
Color:
rgb: (1, 0, 0)
@kacmem
kacmem / playlist-to-podcast.py
Created April 11, 2018 14:00 — forked from archagon/playlist-to-podcast.py
A script that downloads videos from YouTube playlists, extracts their audio, and only downloads missing files each time it's run. Also generates an iTunes-compliant podcast xml file for private hosting purposes. Requires youtube-dl, ffmpeg, and ffprobe.
# YouTube playlist audio retreiver and iTunes-compliant podcast XML generation tool.
# This script will download each video file from the specified YouTube playlist, losslessly extract
# the audio, delete the video, and ultimately produce an iTunes-compliant podcast XML with the
# appropriate metadata, including chapter markers (if provided in the description). If you run the
# script again, only videos that haven't already been converted will be downloaded, allowing you to
# schedule the script to run as often as needed without stressing your internet connection or
# hard drive space. After generating the files and xml, you can easily host them on a local server
# in order to use them with iTunes or your favorite podcast aggregator -- but that's beyond this
# script's jurisdiction.
@kacmem
kacmem / download.sh
Created November 20, 2015 15:27 — forked from mildred/download.sh
Download from archive.org Wayback Machine
#!/bin/bash
url=http://redefininggod.com
webarchive=https://web.archive.org
wget="wget -e robots=off -nv"
tab="$(printf '\t')"
additional_url=url.list
# Construct listing.txt from url.list
# The list of archived pages, including some wildcard url