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 python3 | |
import os | |
import argparse | |
import stat | |
import psutil | |
def build_file_list(basepath): | |
file_list = [] |
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
#!/bin/bash | |
if [ "${1}" == "-d" ]; then | |
ARCHIVE="--download-archive ${2}" | |
shift | |
shift | |
fi | |
youtube-dl \ | |
${ARCHIVE} \ |
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
#!/bin/bash | |
# This is useful when storage is cheaper than compute and you wish to stream | |
# to later stream to a RTMP target as cheaply as possible. | |
# To stream | |
# ffmpeg -re -i <source> -c copy -bsf:a -bsf:a aac_adtstoasc -f flv rtmp://... | |
RES_X=1920 | |
RES_Y=1080 |
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
#!/bin/bash | |
USERAGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0" | |
TARGET="${1}" | |
path="${2}" | |
backup_dir="${TARGET}:archive/$(date +%Y)/$(date +%F_%T)/${path}" | |
rclone \ | |
--checkers=3 \ |
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
#!/bin/bash | |
OVPN_FILE="${1}" | |
OUTPUT_PREFIX="${2}" | |
if [ ! -e "${OVPN_FILE}" ]; then | |
echo "File not found: ${OVPN_FILE}" | |
exit 1 | |
fi |