Skip to content

Instantly share code, notes, and snippets.

View JourneyOver's full-sized avatar

Journey JourneyOver

View GitHub Profile
function getTarget() {
let entityValues = Object.values(parent.entities);
let greenWorms = entityValues.filter(entity => entity.mtype === 'worm');
let redWorms = entityValues.filter(entity => entity.mtype === 'osnake');
let target;
if (redWorms.length > 0)
target = findClosest(redWorms);
#!/bin/bash
# qbittorrent only passes the torrentname and torrentpath
#TORRENT_ID=$1
TORRENT_NAME=$1
TORRENT_PATH=$2
#echo "Processing: " $1 $2 $3 >> /tmp/deluge-execute.log
/usr/bin/filebot -script fn:amc --output "/mnt/Raw/Filebotd" --log-file amc.log --action copy --conflict auto -non-strict --def artwork=y subtitles=en "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
#filebot -script fn:amc --output "$HOME/Videos" --log-file amc.log --action copy --conflict override -non-strict --def artwork=y subtitles=en "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
@skylord123
skylord123 / completed.py
Created July 17, 2014 16:27
deluged, filebot, and plex integration
#!/usr/bin/python
import sys
import subprocess
import logging
from os import path
from deluge.ui.client import client
from twisted.internet import reactor
# Customizable filebot and script options. Lines starting with # are disbled. Remove # to enable them.
@ghuntley
ghuntley / force-refresh-plex-library.py
Created January 6, 2014 08:41
plex media server library refresh all libraries.
#!/usr/bin/env python
import urllib
from xml.dom import minidom
host = 'localhost'
source_type = ['movie', 'show'] # Valid values: artist (for music), movie, show (for tv)
base_url = 'http://%s:32400/library/sections' % host
refresh_url = '%s/%%s/refresh?force=1' % base_url
try:
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created April 16, 2014 03:08
appveyor.yml reference
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
@ribasco
ribasco / how-to-install-java-on-raspbian.md
Last active March 27, 2021 18:37
How to install the latest java version in Raspbian (Stretch)

Introduction

The default version of java provided in the latest raspbian images are outdated, so we are going to install from the ppa:webupd8team/java repository instead. Please note that add-apt-repository ppa:webupd8team/java will not work, so we will need to add the repository manually.

Installation

  1. Create the gpg key file and paste the following lines of text below
nano key.txt
@werkkrew
werkkrew / filebot-process.sh
Last active April 2, 2021 13:10
Filebot Process
#!/bin/bash
#### Media file processing script for Filebot
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes media files in some locations.
# It will run the filebot amc.groovy script against these files and output them into user defined locations for HTPC use.
#
# Known Limitations:
# Not dealing with music files, just video files. I use beets for music tagging.
# Not dealing with unique video types just yet, such as comedy specials, concerts, etc. Filebot might match it okay but I am not confident about it.
@srt4rulez
srt4rulez / AutoHotKey.ahk
Last active March 28, 2022 11:44
Autohotkey
;-------------------------------------------------------------------------------
; Jake's AutoHotKey.ahk
;
; For Reference:
;
; Hotkey Modifiers
; # - Windows key
; ! - Alt
; ^ - Control
; + - Shift
@r0ckarong
r0ckarong / whitelist.txt
Last active May 24, 2023 22:09
Pi-Hole Whitelist
adaway.org
api.twitter.com
bitbucket.org
changelogs.ubuntu.com
de.ign.com
dl.google.com
dmp.adform.net
dropbox.com
feedly.com
gearbest.com
@Grygon
Grygon / updater.py
Created April 5, 2023 19:11
ThePosterDB Checker to keep Plex-Meta-Manager Files up to date
import requests
from bs4 import BeautifulSoup
import yaml
import os
def find_url_poster(data):
base = []
if isinstance(data, dict):
for key, value in data.items():