This draft only handles asset creation, editing and viewing. It does not deal with:
- API versioning
- authentication
- job control
- rundown edit
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from urllib.parse import urlencode | |
from urllib.request import urlopen | |
url = "http://localhost:10000/" | |
try: | |
with urlopen(url, timeout=3) as feed: |
# delete segments older than 10 mins | |
*/5 * * * * find /mnt/cache/streampunk/ -maxdepth 1 -mmin +10 -type f -name "*.ts" -exec rm -f {} \; |
#!/bin/bash | |
HOST="server.whatever.org" | |
USER="root" | |
BACKUP_LOCATIONS=( | |
"/etc/postfix" | |
"/etc/fail2ban" | |
"/etc/nginx" | |
"/etc/php5" |
CherryPy (8.1.0) | |
Jinja2 (2.8) | |
MarkupSafe (0.23) | |
nxtools (0.5.6) | |
Pillow (3.3.1) | |
pip (8.1.1) | |
pygobject (3.18.2) | |
pygtk (2.22.0) | |
PyYAML (3.12) | |
setuptools (20.10.1) |
Latest tested version is 3.5.2 x64 you can get it here: https://www.python.org/ftp/python/3.5.2/python-3.5.2-amd64.exe
During the setup, install python for all users including pip and add Python path to windows env. variables.
After the installation, it should be located in c:\Program Files\Python35
.
@reboot mkdir -p /mnt/cache/origin_dash && chown www-data:www-data /mnt/cache/origin_dash | |
@reboot mkdir -p /mnt/cache/origin_hls && chown www-data:www-data /mnt/cache/origin_hls | |
*/5 * * * * find /mnt/cache/origin_dash -not -name "*init*" -not -name "*raw*" -mmin +5 -type f -exec rm -f {} \; | |
*/5 * * * * find /mnt/cache/origin_hls -maxdepth 1 -mmin +5 -type f -exec rm -f {} \; |
#!/usr/bin/env python | |
import os | |
import time | |
import rex | |
import datetime | |
from nxtools import * | |
from mpd import * | |
from isodate import * |
This release brings some UX enhancements based on users feedback. Doing mistakes is no longer so easy.
# -- coding: utf-8 -- | |
from win32api import * | |
from win32gui import * | |
import win32con | |
import sys, os | |
import struct | |
import time | |
class WindowsBalloonTip: |