Skip to content

Instantly share code, notes, and snippets.

View subzero79's full-sized avatar

subzero79 subzero79

  • Sunshine Coast, QLD
View GitHub Profile
# set base os
FROM alpine:edge
# Set correct environment variables
ENV TERM=xterm
# set ports
EXPOSE 3128/tcp
VOLUME /config
@subzero79
subzero79 / Clean source
Last active October 12, 2022 01:14
Sonarr post processing script to clean video files if the source is rar (packed) content
#!/bin/bash
#sonarr_episodefile_sourcefolder="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD"
#sonarr_episodefile_sourcepath="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv"
sonarr_label="tv-sonarr"
base_dir=$(basename $sonarr_episodefile_sourcefolder)
if [ "${base_dir}" == "${sonarr_label}" ];then
echo "Single file torrent"
#!/bin/bash
##KODI API RETRIEVE
XBMCUSER="xbmc"
XBMCPWD="xbmc"
KODI_HOST="10.10.10.11:8080"
Recent_added=$(curl -s -H 'content-type: application/json;' http://${XBMCUSER}:${XBMCPWD}@${KODI_HOST}/jsonrpc \
--data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.GetRecentlyAddedEpisodes",
#!/bin/bash
filePath="${1}"
##SONARR API CONSULT
SONARR_HOST="10.10.10.12"
SONARR_PORT="8989"
SONARR_API="5215023779d84ad391719fc703bba5ba"
CURL_API="X-Api-Key: $SONARR_API"
URL_SONARR="http://$SONARR_HOST:$SONARR_PORT/api/"
@subzero79
subzero79 / speedcd.yml
Last active September 17, 2016 22:47 — forked from lxt2/speedcd.yml
An indexer definition for speed.cd for cardigann
---
site: speedcd
name: Speed.CD
language: en-us
links:
- https://???
caps:
categories:
52: TV/HD #TV/B-Ray
templates:
GMail:
email:
from: '{{ secrets.email.from }}'
to: '{{ secrets.email.to }}'
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_username: '{{ secrets.email.smtp_username }}'
smtp_password: '{{ secrets.email.smtp_password }}'
smtp_tls: yes
2017-01-02 12:57 TRACE task Test_Notification rendering: Movie Downloaded: {{ movie_name }}
2017-01-02 12:57 DEBUG utils.template Test_Notification Error during rendering: (UndefinedError) 'movie_name' is undefined
2017-01-02 12:57 DEBUG notify Test_Notification cannot render: `title: Movie Downloaded: {{ movie_name }}`, error: (UndefinedError) 'movie_name' is undefined
2017-01-02 12:57 DEBUG notify Test_Notification trying to render default value for `title`
2017-01-02 12:57 TRACE task Test_Notification rendering: {{ task_name }}
2017-01-02 12:57 TRACE task Test_Notification rendering:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body {
background: #000;
font-family: Tahoma;
}
div#main {
#!/bin/sh
status=${1}
echo $status
KODI_URL="http://[email protected]:8080/jsonrpc"
#set -x
_get_audio_device () {
curl -s -H "Content-type: application/json" \
--data-binary '{ "jsonrpc" : "2.0",
"params" : { "setting": "audiooutput.audiodevice" },
#!/usr/bin/python
import os
import sys
import signal
import logging
import logging.handlers
import dbus
import dbus.service
import dbus.mainloop.glib