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 -*- | |
""" | |
Dirty script to check if any forks in ahead of master and open that branch commitlist | |
Warning: Uses alot of api calls | |
""" | |
import requests | |
from requests.auth import HTTPBasicAuth |
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
""" | |
This is a simple script showing how you can used plexpys notifications system to kill a stream | |
Possible plexpyargs: -tk {transcode_key} -u {username} -td {transcode_decision} -t 20:20 -ln Secret_tash | |
Instructions: | |
1. Save the script somewhere on your computer as kill_a_stream.py. |
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
REM Add this script to Plex down and/or Plex remote down to restart plex if | |
REM server is unreachable. | |
TASKKILL /f /im "Plex Media Server.exe" | |
TASKKILL /f /im "PlexScriptHost.exe" | |
"C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" |
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 __future__ import print_function | |
import argparse | |
import requests # pip install requests | |
import sys | |
from jsonrpclib import jsonrpc # pip install jsonrpclib-pelix | |
""" | |
Simple script to throttle nzb clients for plexpy |
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 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
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
#--coding: utf-8-- | |
import urllib2 | |
import urllib | |
from sys import argv | |
''' | |
Used for sending texts via telenor norway smapi | |
Send passord to 1999 to get your password | |
You will be billed by telenor for the usage even if sms is included in your subscription | |
''' | |
msg = argv[1] |
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
from collections import Counter | |
urllib2 | |
from uuid import getnode | |
import platform | |
import json | |
ip = '' | |
port = '' | |
plextoken = '' | |
url = 'http://%s:%s/' % (ip, port) |
NewerOlder