Skip to content

Instantly share code, notes, and snippets.

View nro-bot's full-sized avatar

nro-bot

View GitHub Profile
@nro-bot
nro-bot / terminalTimer.sh
Last active July 24, 2019 21:37 — forked from tir38/terminalTimer.sh
in-terminal timer shell script
# script to create timer in terminal
# Jason Atwood
# 2013/6/22
# Nouyang -- added large font, send-notify popup, gnome-terminal resize, and play wav file
# 2019
#!/bin/sh
# start up
#echo "starting timer script ..."
@nro-bot
nro-bot / vtt2text.py
Created April 7, 2020 05:04 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.