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
''' | |
Dolby Vision Tagger for Plex | |
============================ | |
This script walks your Plex server's libraries and tags Dolby Vision Profile | |
and Enhancement Layer details by attaching a label. The label will be of | |
format: | |
Dolby Vision P{profile number} {enhancement layer} |
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 os | |
import pathlib | |
import subprocess | |
import json | |
root = '/volume1/Media/Movies' | |
dovi_metadata = {'videos': [], 'total': 0, 'total_dovi': 0, 'total_p7_fel': 0} |
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
<!-- thanks to https://codepen.io/webslingerm/pen/GXxxVx --> | |
<?php | |
$move = $_GET["move"] ? $_GET["move"] : 0; | |
$exercise = $_GET["exercise"] ? $_GET["exercise"] : 0; | |
$stand = $_GET["stand"] ? $_GET["stand"] : 0; | |
?> | |
<style type="text/css"> | |
@-webkit-keyframes RingProgress { |
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
''' | |
You'll need to pip install some dependencies: | |
* python-dateutil | |
* requests | |
Also, populate your EMAIL and PASSWORD below. | |
''' | |
from xml.etree import ElementTree |
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 dateutil.tz import UTC | |
from dateutil.parser import parse | |
from datetime import datetime | |
import conf | |
import json | |
import os | |
import feedparser | |
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 | |
import os | |
import sys | |
import requests | |
base_url = 'https://granary.io/instagram/cleverdevil/@self/@app/%s' | |
query_args = { | |
'format': 'mf2-json', |
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 | |
''' | |
Conditionally upload all of the photos from an exported Facebook album to a | |
Micropub-compatible website with a media endpoint, and dump MF2-JSON data | |
that can later be published to the same Micropub website. | |
''' | |
import json | |
import sys |
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 | |
''' | |
A script for quickly publishing MF2 content to a Micropub endpoint. To use this | |
script, first ensure that you have installed: | |
requests | |
You will also need to set the following environment variables: |
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 | |
''' | |
Usage: | |
./transform <path-to-facebook-export.json> | |
This will transform everything using granary and then place | |
individual files into a directory called "mf2." |
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
-- ----------------- | |
-- Setup environment | |
-- ----------------- | |
-- Animation off, mofo | |
hs.window.animationDuration = 0 | |
-- Get list of screens and refresh that list whenever screens are (un)plugged | |
local screens = hs.screen.allScreens() | |
local screenwatcher = hs.screen.watcher.new(function() |
NewerOlder