Site/Network | Abbreviation |
---|---|
9Now | 9NOW |
A&E | AE |
ABC (AU) iView | AUBC |
ABC (US) | AMBC |
Adult Swim | AS |
Al Jazeera English | AJAZ |
All4 (Channel 4, ex-4oD) | ALL4 |
Amazon | AMZN |
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 python3 | |
import argparse | |
import os | |
import subprocess | |
import sys | |
from fnmatch import fnmatch | |
cached_mediainfo = {} |
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 functools | |
from vapoursynth import core | |
def FrameInfo(n, f, clip, frame_num=True, frame_type=True, frame_time=True, text=None, color='0000FFFF'): | |
# NOTE: color is in format AABBGGRR | |
lines = [] | |
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 base64 | |
import uuid | |
from pymp4.parser import Box | |
def get_moov_pssh(fd): | |
while True: | |
x = Box.parse_stream(fd) | |
if x.type == b'moov': |
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 python3.7 | |
import argparse | |
import re | |
import sys | |
from collections import defaultdict | |
# https://stackoverflow.com/a/9028031/492203 | |
class CustomAction(argparse.Action): |
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 annotations | |
import argparse | |
import os | |
import subprocess | |
from pathlib import Path | |
def strip_cc(file: Path | os.PathLike[str]) -> None: | |
""" |
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
❯ python | |
Python 3.10.7 (main, Sep 7 2022, 12:19:18) [GCC 10.2.1 20210110] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> try: | |
... exit() | |
... except SystemExit: | |
... print("no exit for you") | |
... finally: | |
... print("cleanup") | |
... |
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 debian:buster AS base | |
ENV CONF_ARGS="--disable-shared" \ | |
CMAKE_ARGS="-DBUILD_SHARED_LIBS=0" \ | |
CC="clang" \ | |
CXX="clang++" \ | |
LD="ld.lld" \ | |
CFLAGS="-fPIC" \ | |
CXXFLAGS="-fPIC" \ | |
LDFLAGS="-Wl,--allow-multiple-definition" | |
RUN apt-get -y update && \ |
openssl genrsa -out development.key 2048
openssl req -new -key development.key -out development.csr -subj /
(subject field doesn't matter, it will be overridden anyway)- Go to developer portal (https://developer.apple.com/account/) -> Certificates, Identifiers & Profiles
- Create a new certificate, choose "Apple Development", and upload the
.csr
file - Download the resulting
.cer
file - Download the Apple WWDR intermediate certificate from https://www.apple.com/certificateauthority/ (the one that expires in 2030: https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer)
openssl x509 -inform der -in development.cer -out development.pem
openssl x509 -inform der -in AppleWWDRCAG3.cer -out AppleWWDRCAG3.pem
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
#!/bin/bash | |
if [ "$#" -lt 1 ]; then | |
echo "ERROR: Missing argument." >&2 | |
echo "Usage: $0 --list|<name>" | |
exit 1 | |
fi | |
if [ "$#" -gt 1 ]; then | |
echo "ERROR: Too many arguments." >&2 |