Skip to content

Instantly share code, notes, and snippets.

Working on changing the world.

Anthony Eden anthonyeden

Working on changing the world.
View GitHub Profile
anthonyeden / Responsive-YouTube-Embed-Wordpress-Filters.php
Last active Dec 1, 2020
Responsive YouTube Embeds in Wordpress
View Responsive-YouTube-Embed-Wordpress-Filters.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, '') !== false || strpos($html, '') !== false){
return '<div class="embed-responsive embed-responsive-16by9">' . $html . '</div>';
} else {
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 / XML-Sample2.lua
Last active May 4, 2020
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
anthonyeden /
Created Oct 19, 2018
Zetta to Powergold Asset Import
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 (
import os
import sys
import json
import pypyodbc
import io
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]
[--set_channelstate {ON,OFF}]
[--set_fadergain SET_FADERGAIN]
anthonyeden / MetaRadio-RadioDJ.xml
Created Sep 28, 2018
MetaRadio RadioDJ XML Template
View MetaRadio-RadioDJ.xml
<startTime>$now-year$-$now-month$-$now-day$ $now-hour$:$now-minute$:$now-second$</startTime>
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": "",
"DevicePassword": "",
"DeviceOutputNum": 1,
"Columns": 1,
"CheckUpdatesAuto": true,
"GPI_DeviceIP": "",
"GPI_DevicePassword": "",
"Sources": [
View gist:3411fc2410b1724c8808ccf9509fe75b
import sys
import pypyodbc
import json
import io
import time
SybaseConnectionString = 'DSN=DSN_NAME;UID=USERNAME;Pwd=PASSWORD;'
dbConn = pypyodbc.connect(SybaseConnectionString)
cur = dbConn.cursor()
anthonyeden / metaradio_input.php
Created Jun 28, 2018
MetaRadio: Simple PHP Now Playing Script (Example)
View metaradio_input.php
// This script receives data from MetaRadio's HTTP Output module
// This is a simple example. Feel free to make it your own.
// Specify a secret username and password
$username = "---SECRET-USERNAME---";
$password = "---PASSWORD-USERNAME---";