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 os | |
import sys | |
import subprocess | |
import datetime | |
import time | |
from multiprocessing import Pool | |
def convert_to_iso_mp4(params): |
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 requests | |
import pprint | |
import os | |
TOKEN=os.environ['TOKEN'] | |
ZONE=os.environ['ZONE'] | |
EMAIL="your email" | |
def get_all_rules(): |
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
define (require) -> | |
# blocks = [ | |
# { w: 100, h: 100 }, | |
# { w: 100, h: 100 }, | |
# { w: 80, h: 80 }, | |
# { w: 80, h: 80 } | |
# ]; | |
# packer = new GrowingPacker() |
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 signal | |
def docker_shutdown_handler(_signum, _frame): | |
print("Get TERM'd") | |
print("Register a signal handler") | |
signal.signal(signal.SIGTERM, docker_shutdown_handler) |