Skip to content

Instantly share code, notes, and snippets.

@ta264
ta264 / integration.log
Created July 4, 2015 11:38
Sonarr mono integration test log
NUnit-Console version 2.6.1.12217
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Unix 3.13.0.55
CLR Version: 4.0.30319.17020 ( Mono 4.0 ( 3.10.0 (tarball Wed Nov 5 12:50:04 UTC 2014) ) )
@ta264
ta264 / output
Last active August 29, 2015 14:26
Cookie expiry test
tom@htpc:~/repos/tlstest$ mono utc2.exe
Expires: 02/08/2015 15:19:50 (expired? True)
Expires: 02/08/2015 16:19:50 (expired? False)
@ta264
ta264 / gist:b480fe8768648afe3b47d1bd0c5d1e98
Created April 8, 2019 17:52
Album lookup with tracks
[
{
"title": "Kveikur",
"disambiguation": "",
"overview": "Kveikur (pronounced [ˈkvɛɪkʏr], fuse or candlewick) is the seventh studio album from Icelandic post-rock band Sigur Rós. It was released on 17 June 2013 internationally and on 18 June 2013 in the United States through XL Recordings. It is the first album to be fully released through XL after the band departed EMI and Parlophone during the label's acquisition by Universal Music Group in 2012. It is the first album since their debut, Von, not to feature Kjartan Sveinsson, following his departure in 2012, and the last to feature drummer Orri Páll Dýrason before his departure in 2018. The cover is a photo by the Brazilian artist Lygia Clark.",
"artistId": 20,
"foreignAlbumId": "9fa7397e-7212-425f-8158-87c3bfb79602",
"monitored": false,
"anyReleaseOk": true,
"profileId": 0,
@ta264
ta264 / beet_import.sh
Created April 9, 2019 11:42
Beets import script
#!/bin/bash
BEET_CONFIG="/home/tom/.config/beets/config.yaml"
set -e
echo "$lidarr_addedtrackpaths"
lidarr_first_track=$(echo "$lidarr_addedtrackpaths" | cut -d '|' -f1)
lidarr_album_path=$(dirname "$lidarr_first_track")
echo "Path: $lidarr_album_path"
@ta264
ta264 / config.yaml
Created April 9, 2019 11:45
Example beets config
directory: /mnt/data1/Music
library: /mnt/data1/Music/beetslibrary.db
import:
copy: no
plugins: fetchart embedart duplicates inline scrub
item_fields:
singledigitdisc: "'{:01n}'.format(disc)"
paths:
default: $albumartist/$album ($year)/$albumartist - $album - $singledigitdisc$track - $title
per_disc_numbering: yes
@ta264
ta264 / run.sh
Created December 11, 2020 18:29
docker-compose
#!/bin/sh
#
# Forked from https://github.com/linuxserver/docker-docker-compose/blob/master/run.sh
#
# Run docker-compose in a container
#
# This script will attempt to mirror the host paths by using volumes for the
# following paths:
# * $(pwd)
# * $(dirname $COMPOSE_FILE) if it's set
@ta264
ta264 / get-docker.sh
Last active February 26, 2024 13:46
Install docker on arm64 synology
#!/bin/bash
set -e
ARCH=aarch64
DOCKER_VERSION=20.10.0
DOCKER_DIR=/volume1/@docker
echo "Downloading docker $DOCKER_VERSION-$ARCH"
curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1