Skip to content

Instantly share code, notes, and snippets.

View davidcortesortuno's full-sized avatar
🍊

David Ignacio Cortes davidcortesortuno

🍊
  • Universidad Técnica Federico Santa María
  • Chile
View GitHub Profile
@davidcortesortuno
davidcortesortuno / clean_youtube_dl_auto_subs.py
Created August 30, 2020 12:04
Remove duplicated lines from a .vtt file generated by youtube-dl when downaloading auto generated Youtube subtitles
# Remove duplicated lines from a .vtt file generated by youtube-dl when
# downloading auto-subs from a Youtube video using the --write-auto-sub option
# This script only prints the lines so save the edited subs as:
#
# python this_script.py original_sub.vtt > new_sub.vtt
import re
import sys
f = open(sys.argv[1])
call plug#begin('~/.nvim/plugged')
" Make sure you use single quotes
"
Plug 'mhartington/oceanic-next'
Plug 'morhetz/gruvbox'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'lervag/vimtex'
Plug 'vim-airline/vim-airline'