This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download latest ubuntu destop image. | |
2. Download https://rufus.ie/ follow this guide. | |
3. Boost the untunu image, using, change boot order in bios if needed (f2) | |
4. Use grub to delete any old partition on ssd. | |
5. Download the lastest hassio image for your nuc | |
6. DO the command: gunzip -c /home/ubuntu/Downloads/hassos_intel-nuc-2.12.img.gz | sudo dd of=/dev/sda Make sure you change the device and the image version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import re | |
from profilehooks import timecall | |
def with_in(first, second, dev=5): | |
x = first - second | |
y = second - first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
apikey = '' | |
U = 'http://10.0.0.97:9009/' | |
AU = U + 'api/v1/' + apikey +'?cmd=%s' | |
session = requests.Session() | |
episodes_to_archive = [] | |
archive_qualitys = ['SD', 'SD DVD', 'SDTV'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from plexapi.server import PlexServer | |
from imdbpie import Imdb | |
baseurl = 'http://10.0.0.97:32400' | |
token = '' | |
plex = PlexServer(baseurl, token) | |
imdb = Imdb() | |
top = imdb.top_250() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from plexapi.server import PlexServer | |
from functools import partial | |
baseurl = 'http://localhost:32400' | |
token = '' | |
plex = PlexServer(baseurl, token) | |
JUMPTO = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Updates all metadata in the PlexPy database after moving Plex libraries. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
from plexapi.server import PlexServer | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Create a Plex collection from a text file list of rating keys. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
import requests | |
from plexapi.server import PlexServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import re | |
import subprocess | |
import time | |
def example_func(*args): | |
for i in range(1, 101): | |
s = random.choice([0.1, 0.3, 0.5, 0.7, 0.9]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from subprocess import PIPE, Popen | |
from threading import Thread | |
try: | |
from Queue import Queue, Empty | |
except ImportError: | |
from queue import Queue, Empty # python 3.x | |
ON_POSIX = 'posix' in sys.builtin_module_names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Create a Plex Playlist with what was aired on this today's month-day, sort by oldest first. | |
If Playlist from yesterday exists delete and create today's. | |
If today's Playlist exists exit. | |
""" | |
# Untested requires plexapi 3.0.0. | |
from plexapi.server import PlexServer | |
import requests |
NewerOlder