Skip to content

Instantly share code, notes, and snippets.

@jdreinhardt
jdreinhardt / epub_fixer.sh
Created January 4, 2026 20:28
A POSIX-compatible shell script that can be used to fix issues with epub files.
#!/bin/sh
# EPUB Kindle Fix - shell version
# Fixes common EPUB issues for Kindle compatibility
# Based on https://github.com/innocenat/kindle-epub-fix
# Allowed Kindle languages (from Amazon KDP)
ALLOWED_LANGS="af gsw ar eu nb br ca zh kw co da nl stq en fi fr fy gl de gu hi is ga it ja lb mr ml gv frr nb nn pl pt oc rm sco gd es sv ta cy afr ara eus baq nob bre cat zho chi cor cos dan nld dut eng fin fra fre fry glg deu ger guj hin isl ice gle ita jpn ltz mar mal glv nor nno por oci roh gla spa swe tam cym wel"
# Function to check if command exists
@jdreinhardt
jdreinhardt / tautulli_matrix_notifier.py
Created May 5, 2018 17:40
Simple script to send notifications from Tautulli to Matrix (Riot.im)
# -*- coding: utf-8 -*-
import sys
import requests
import json
import markdown
import urllib
MATRIX_SERVER = 'https://matrix.org' #replace with custom server if running own node
MATRIX_PORT = '8448' #default management port

Keybase proof

I hereby claim:

  • I am jdreinhardt on github.
  • I am jdreinhardt (https://keybase.io/jdreinhardt) on keybase.
  • I have a public key ASBtlr7p5pZGLVmsKNW8FtTqTUoUceMP-PqYR1OQXiCvywo

To claim this, I am signing this object: