Skip to content

Instantly share code, notes, and snippets.

View Voidi's full-sized avatar

Tobias Wohlfarth Voidi

View GitHub Profile
@Voidi
Voidi / xrdp-install.sh
Created August 26, 2022 09:48
XRDP Install
#!/bin/bash
#
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
###############################################################################
@Voidi
Voidi / virtualhost.sh
Created July 29, 2016 19:53
Wrapper for adding virtualhosts to Apache
#!/usr/bin/env bash
### Set Constants
apacheUser="www-data"
apacheConfigDir='/etc/apache2'
# sitesEnable="${apacheConfigDir}/sites-enabled"
export sitesAvailable="${apacheConfigDir}/sites-available"
export APACHEROOTDIR='/srv/www'
provideTemplate() {
@Voidi
Voidi / README.md
Created November 18, 2015 01:53 — forked from jareware/README.md
Conversion script between the TTML & SRT subtitle formats

premiere-subtitle-convert

Conversion script between the TTML & SRT subtitle formats. This is particularly useful with Adobe Premiere, as it doesn't understand the SRT format (which is joyously simple and interoperable). TTML-XML is probably the most straightforward subtitle format it does understand, hence this tool.

Note that due to the simplicity of the SRT format, this conversion is extremely lossy for all the bells and whistles supported by TTML. Not like you'd want fixed-pixel font sizes etc in your subtitles anyway, but you've been warned.