Skip to content

Instantly share code, notes, and snippets.

View RenatoUtsch's full-sized avatar

Renato Utsch RenatoUtsch

View GitHub Profile
@RenatoUtsch
RenatoUtsch / template.tex
Last active April 15, 2020 12:30
Modern barebones template for LuaLaTeX and BibLaTeX
\documentclass[12pt]{article}
% Encoding
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{csquotes}
\setdefaultlanguage{english}
% Formatting
\usepackage{fullpage}
@RenatoUtsch
RenatoUtsch / convert.sh
Last active April 8, 2018 12:04
Scale, re-encode and add hardsubs to video files using ffmpeg
#!/bin/bash
# Args: ./convert.sh <file glob> <output folder>
# Don't forget to escape the wildcards used in the file glob.
#
# This is a bash script I wrote to convert my high-quality videos to
# lower-quality ones that can be played in my car's player. As it
# (unfortunately) doesn't support softsubs, I also have to encode hardsubs into
# the videos. The only format supported by the player is mp4, so I always convert
# to that by default.
#