Skip to content

Instantly share code, notes, and snippets.

View anthonyeden's full-sized avatar
💭
Working on changing the world.

Anthony Eden anthonyeden

💭
Working on changing the world.
View GitHub Profile
@anthonyeden
anthonyeden / ZettaRemoveDeletionDates.py
Created March 31, 2018 06:20
RCS Zetta: Deletion Date Remover
"""
Zetta Deletion Date Remover
This script will remove all deletion dates from assets in the Zetta DB, except Voice Tracks and Quick Records.
Written by Anthony Eden (https://mediarealm.com.au/)
"""
import os
import sys
import json
@anthonyeden
anthonyeden / ZettaBatchExport.py
Last active March 31, 2018 06:20
RCS Zetta: Batch Export Audio Files
"""
Zetta Batch Audio Exporter
Given a list of External IDs, find each asset's file in the Zetta Content Store, and copy it to a separate folder.
Written by Anthony Eden (https://mediarealm.com.au)
"""
from shutil import copyfile
import os
import pypyodbc
@anthonyeden
anthonyeden / ZettaExternalIDs.py
Last active March 31, 2018 06:20
RCS Zetta External ID Finder
"""
Zetta External ID Finder
This script is designed to find a selection of usable numeric External IDs in Zetta.
It only looks for five-digit codes. It will output these to a file.
Written by Anthony Eden (https://mediarealm.com.au)
"""
import os
@anthonyeden
anthonyeden / ZettaBackgroundRecorderTimestamper.py
Created March 31, 2018 06:26
RCS Zetta: Background Recorder Timestamper
"""
Zetta Background Recorder Timestamper
This script appends the last-modified timestamp string to assets that are updated by the background recorder.
Written by Anthony Eden (https://mediarealm.com.au)
"""
import pypyodbc
import time
import datetime
@anthonyeden
anthonyeden / config.md
Created March 31, 2018 06:31
Wordpress Caching with Nginx FastCGI

These instructions allow you to setup basic Nginx FastCGI caching for Wordpress. It ensures all admin users, and non-GET requests, bypass the cache.

Create directories with the following commands:

mkdir -p /var/cache/nginxfastcgi
chown www-data: /var/cache/nginxfastcgi

Add the following to the main server blockin your site's .conf file:

fastcgi_cache_key $scheme$request_method$host$request_uri;

@anthonyeden
anthonyeden / Office365Licensing.ps1
Last active June 9, 2018 10:13
Office 365 Group Licensing
# This script adds Members of the group "Office365Licensing" to the right licenses in Office 365
# It doesn't remove licenses if they are removed from the group - this must be done manually
# Written by Anthony Eden (https://mediarealm.com.au/)
################################################################
# CAUTION: This script contains hard-coded passwords!!!
################################################################
@anthonyeden
anthonyeden / StatusFeedExample1.py
Created June 24, 2017 08:38
Zetta Status Feed Examples (Python)
"""
Zetta Status Feed - Example Code
Written by Anthony Eden (http://mediarealm.com.au/)
https://mediarealm.com.au/articles/rcs-zetta-status-feed-getting-started/
"""
# We need the PySimpleSoap library (https://pypi.python.org/pypi/PySimpleSOAP/1.16)
# Make sure you see my change to PySimpleSoap in the file "pysimplesoap-helpers-patch.py"
from pysimplesoap.client import SoapClient
@anthonyeden
anthonyeden / config-sample-delaycontrol.json
Created September 12, 2018 11:03
Example Config for lwSDS - Profanity Delay Remote Control
{
"Title": "Livewire Simple Delay Control",
"DeviceIP": "192.168.0.15",
"DevicePassword": "",
"DeviceOutputNum": 1,
"Columns": 1,
"CheckUpdatesAuto": true,
"GPI_DeviceIP": "192.168.0.15",
"GPI_DevicePassword": "",
"Sources": [
@anthonyeden
anthonyeden / MetaRadio-RadioDJ.xml
Created September 28, 2018 06:24
MetaRadio RadioDJ XML Template
<RadioDJ>
<title><![CDATA[$title$]]></title>
<artist><![CDATA[$artist$]]></artist>
<duration>$durationinSeconds$</duration>
<startTime>$now-year$-$now-month$-$now-day$ $now-hour$:$now-minute$:$now-second$</startTime>
<assetType>$track-type$</assetType>
<playoutId><![CDATA[$track_id$]]></playoutId>
</RadioDJ>
@anthonyeden
anthonyeden / MetaRadioMAirList.xml
Last active November 11, 2018 05:25
MetaRadio: mAirList XML Template
<mAirList>
<title>%b</title>
<artist>%a</artist>
<duration>%l</duration>
<startTime>%S{dd/mm/yyyy hh:nn:ss am/pm}</startTime>
<endTime>%F{dd/mm/yyyy hh:nn:ss am/pm}</endTime>
<assetType>%J</assetType>
<playoutId>%1</playoutId>
<externalId>%V</externalId>
</mAirList>