Skip to content

Instantly share code, notes, and snippets.

@Diegus83
Diegus83 / README.md
Last active August 24, 2020 23:54 — forked from carestad/README.md
TTML to SRT conversion. Written in PHP.

ttml2srt.php

This is a simple script for converting TTML subtitle files to SRT ones. Tested with TTML files on tv.nrk.no.

It assumes the data is structured like this:

<tt>
 <body>
  <div>
   <p>(...)</p>
@Diegus83
Diegus83 / move_the_mouse.sh
Created April 8, 2019 15:41
# move the mouse around to avoid the inactivity timeout on some websites
# move the mouse around to avoid the inactivity timeout on some websites
# https://github.com/facastagnini
# requires cliclick
# brew install cliclick
while true
do
  /usr/local/bin/cliclick "m:12,34"
  sleep 60
  /usr/local/bin/cliclick "m:120,34"
@Diegus83
Diegus83 / backup.sh
Last active August 24, 2019 22:58
Simple pihole backup via SCP
#!/bin/bash
####################################
#
# Backup via SCP
#
# Executes daily as defined by crontab -e
# 0 0 * * * bash /home/pi/scripts/backup.sh
#
# Don't forget to generate an ssh key and add it to the mac mini