This file contains hidden or 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
# Name: checkDisk.sh | |
# Created by: Brimur | |
# Created: Nov 26th 2019 | |
# This script is used to control Transmission jobs based on available disk space. | |
# | |
# This should be run as a cronjob (every minute) on the server/computer running Transmission | |
# | |
# If you use a download manager tell it to add jobs as PAUSED | |
# | |
# - If disk is nearly full (limit) then stop all jobs |
This file contains hidden or 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 python script should be run | |
# as a cron job every 15 minutes to | |
# cache the next episode of a currently | |
# playing TV show. | |
######################################## | |
import requests | |
import os | |
import psutil |
This file contains hidden or 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 python script should be run | |
# as a cron job every 6 hours to | |
# cache On Deck episodes. | |
######################################## | |
import os | |
import psutil | |
from subprocess import check_call | |
from itertools import chain |
This file contains hidden or 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
################################################################## | |
# | |
# Requires Windows PowerShell v2 - v5 | |
# Will not work in PS 7+ due to lack of ParsedHtml functionality | |
# | |
################################################################## | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$skuPage = Invoke-WebRequest "https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-service-plan-reference" |