Skip to content

Instantly share code, notes, and snippets.

@JoshStark
JoshStark / convert_cue.py
Created May 15, 2021 00:37
Simple script to convert an InAudible CUE sheet into a flat chapters format
#!/usr/bin/env python
# encoding: utf-8
import os
import re
import argparse
import sys
class AudiobookCueSheet():
@JoshStark
JoshStark / convert_audible.sh
Last active June 18, 2021 06:28
A script which combines audible-cli and update_chapter_titles.py to create a 1-1 m4b file from an aax file.
#!/bin/bash
# This script has a few pre-requisites:
#
# 1. The audible-cli must be installed and available in the $PATH.
# https://github.com/mkb79/audible-cli
# e.g. export PATH=$PATH:/home/$(whoami)/.local/bin
#
# 2. The update_chapter_titles.py must also be present in the same
# directory as this file. This also relies on python3 being in the $PATH
@JoshStark
JoshStark / docker-compose.yml
Created January 14, 2019 18:48
Compose configuration for NC/Maria/Let's Encrypt
version: "2"
services:
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
restart: always
cap_add:
- NET_ADMIN
depends_on:
@JoshStark
JoshStark / Employee.java
Created January 25, 2016 19:01
Example of JPA entity
package example;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity(name = "employee")
public class Employee {