Skip to content

Instantly share code, notes, and snippets.

💭
Working on changing the world.

Anthony Eden anthonyeden

💭
Working on changing the world.
Block or report user

Report or block anthonyeden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anthonyeden
anthonyeden / countdown_5mins.txt
Created Jul 21, 2019
Adobe After Effects - Countdown Expressions
View countdown_5mins.txt
st = 300;
t = st - time;
c = timeToTimecode(t);
c = c.substring(4,8)
c
@anthonyeden
anthonyeden / realtime.py
Created Dec 30, 2018
Google Analytics Realtime Data
View realtime.py
from apiclient.discovery import build
from oauth2client.service_account import ServiceAccountCredentials
import httplib2
VIEW_ID = 'ga:123456789'
def get_service(api_name, api_version, scope, key_file_location,
service_account_email):
"""Get a service that communicates to a Google API.
@anthonyeden
anthonyeden / Responsive-YouTube-Embed-Wordpress-Filters.php
Last active Jul 13, 2019
Responsive YouTube Embeds in Wordpress
View Responsive-YouTube-Embed-Wordpress-Filters.php
<?php
add_filter('the_content', function($content) {
return str_replace(array("<iframe", "</iframe>"), array('<div class="iframe-container"><iframe', "</iframe></div>"), $content);
});
add_filter('embed_oembed_html', function ($html, $url, $attr, $post_id) {
if(strpos($html, 'youtube.com') !== false || strpos($html, 'youtu.be') !== false){
return '<div class="embed-responsive embed-responsive-16by9">' . $html . '</div>';
} else {
@anthonyeden
anthonyeden / Windows-10-Basic-Cleanup.ps1
Created Dec 18, 2018
Windows 10 Basic Cleanup - Powershell
View Windows-10-Basic-Cleanup.ps1
Get-AppxPackage -allusers *messaging* | Remove-AppxPackage
Get-AppxPackage -allusers *WindowsMaps* | Remove-AppxPackage
Get-AppxPackage -allusers *bing* | Remove-AppxPackage
Get-AppxPackage -allusers *zune* | Remove-AppxPackage
get-appxpackage -allusers *officehub* | remove-appxpackage
get-appxpackage -allusers *skype* | remove-appxpackage
get-appxpackage -allusers *people* | remove-appxpackage
get-appxpackage -allusers *solitaire* | remove-appxpackage
get-appxpackage -allusers *xbox* | remove-appxpackage
Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage
@anthonyeden
anthonyeden / XML-Sample2.lua
Created Nov 6, 2018
Telos ZipStream - Sample XML Metadata Filter
View XML-Sample2.lua
-- ------------------------------------------------------------------
-- MetaData Filter. Copyright (C) 2011 Tls Corporation
-- Author: Ioan L. Rus
--
-- Lines that start with two dashes (like this line) are comments.
--
-- Metadata filters are written in a very simple programming
-- language named Lua. Additional information about the language
-- and it's syntax can be found at http://www.lua.org.
--
@anthonyeden
anthonyeden / ZettaPowergoldAssetImport.py
Created Oct 19, 2018
Zetta to Powergold Asset Import
View ZettaPowergoldAssetImport.py
"""
This script is designed to export all music from a specific Zetta category to a text file, ready for Powergold to import.
Written by Anthony Eden (https://mediarealm.com.au/)
"""
import os
import sys
import json
import pypyodbc
import io
@anthonyeden
anthonyeden / license.txt
Last active Dec 8, 2018
Livewire CLI License
View license.txt
License Agreement for Livewire CLI
----------------------------------
Preamble: This Agreement, governs the relationship between You, a Business Entity, (hereinafter: Licensee) and Media Realm, whose principal place of business is PO Box 295, Winston Hills, NSW, 2153 (hereinafter: Licensor). This Agreement sets the terms, rights, restrictions and obligations on using Livewire CLI (hereinafter: The Software) created and owned by Licensor, as detailed herein
License Grant: Licensor hereby grants Licensee a Personal, Non-assignable & non-transferable, Commercial with terms, Without the rights to create derivative works, Non-exclusive license, all with accordance with the terms set forth and other legal restrictions set forth in 3rd party software used while running Software.
Limited: Licensee may use Software for the purpose of:
Running Software on Licensee's Server[s], directly controlling the equipment of one radio station;
View Livewire-Control-CLI-Usage.txt
usage: Livewire-Control-CLI.exe [-h] [--get_showprofile] [--get_showprofiles]
[--set_showprofile SET_SHOWPROFILE]
[--fadernum FADERNUM]
[--faderlivewire FADERLIVEWIRE]
[--get_sourceprofile] [--get_sourceprofiles]
[--set_sourceprofile SET_SOURCEPROFILE]
[--get_channelstate]
[--set_channelstate {ON,OFF}]
[--get_fadergain]
[--set_fadergain SET_FADERGAIN]
@anthonyeden
anthonyeden / MetaRadio-RadioDJ.xml
Created Sep 28, 2018
MetaRadio RadioDJ XML Template
View MetaRadio-RadioDJ.xml
<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 / config-sample-delaycontrol.json
Created Sep 12, 2018
Example Config for lwSDS - Profanity Delay Remote Control
View config-sample-delaycontrol.json
{
"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": [
You can’t perform that action at this time.