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
from flask import Flask | |
from flask import jsonify | |
from flask import request | |
from flask_pymongo import PyMongo | |
from flask.json import JSONEncoder | |
from bson.objectid import ObjectId | |
from flask_cors import CORS | |
class CustomJSONEncoder(JSONEncoder): |
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
# BetterTouchTool reset trial time | |
# ** All preference will reset | |
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist" | |
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist | |
echo "Done" | |
echo "remove ~/Library/Application\ Support/BetterTouchTool/" | |
rm -rf ~/Library/Application\ Support/BetterTouchTool/ | |
echo "Done" |
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
# frozen_string_literal: true | |
describe Calendar::Icalendar do | |
subject :ical do | |
Calendar::Icalendar.new(account, | |
start: start, | |
stop: stop, | |
filter: filter&.params || {}, | |
filter_name: filter&.name).get_items.to_ical | |
end |
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
# -*- coding: utf-8 -*- | |
#------------------------------------------------------------------------------ | |
# | |
# Plex movie ratings script by /u/SwiftPanda16 | |
# | |
# *** Use at your own risk! *** | |
# *** I am not responsible for damages to your Plex server or libraries. *** | |
# | |
#------------------------------------------------------------------------------ |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Updates all metadata in the Tautulli database after moving Plex libraries. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
from plexapi.server import PlexServer | |
import requests |
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
#!/usr/bin/env ruby | |
SECRET_JSON_VARIABLE = 'GOOGLE_APPLICATION_CREDENTIALS'.freeze | |
raise 'please define an env variable GOOGLE_APPLICATION_CREDENTIALS pointing to your client_secrets.json' unless ENV[SECRET_JSON_VARIABLE] | |
raise 'please provide the spreadsheet id' if ARGV[0].nil? | |
require 'google/clients/spreadsheet_client' | |
require 'google/models/spreadsheet' | |
spreadsheet_id = ARGV[0] | |
spreadsheet = Google::Models::Spreadsheet.new(spreadsheet_id: spreadsheet_id) |
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
Updated script link: | |
https://github.com/blacktwin/JBOPS/blob/master/utility/add_label_recently_added.py |
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
""" | |
Send an email with what was added to Plex in the past week using PlexPy. | |
Email includes title (TV: Show Name: Episode Name; Movie: Movie Title), time added, image, and summary. | |
Uses: | |
notify_added_lastweek.py -t poster -d 1 -u all -i user1 user2 -s 250 100 | |
# email all users expect user1 & user2 what was added in the last day using posters that are 250x100 | |
notify_added_lastweek.py -t poster -d 7 -u all | |
# email all users what was added in the last 7 days(week) using posters that are default sized |
NewerOlder