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 / Livewire-Control-CLI-Usage.txt
Last active December 8, 2018 05:17
Livewire CLI Usage
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 / license.txt
Last active December 8, 2018 06:06
Livewire CLI License
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;
@anthonyeden
anthonyeden / realtime.py
Created December 30, 2018 03:22
Google Analytics Realtime Data
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 / gist:cefdf552890280328569
Created July 28, 2014 11:01
PyBASS_FX Example Wrapper
'''
This is a simple wrapper for BASS FX in Python, based on PyBASS.
It's incomplete code, but demonstrates basic functionality of the FX plugin in Python.
Feel free to do whatever you like with this. Make it your own.
More info: http://mediarealm.com.au/articles/2014/08/un4seen-bass-audio-library-python/
'''
if platform.system().lower() == 'windows':
@anthonyeden
anthonyeden / icecast-downloadxml.sh
Created June 25, 2017 06:46
Icecast: Pull Configuration from S3
#!/bin/sh
# This script downloads your Icecast XML script from AWS S3, compares it for changes, and reloads Icecast if changes have been found
# Written by Anthony Eden (http://mediarealm.com.au/)
file="icecast.xml"
bucket="BUCKET-NAME-GOES-HERE"
s3Key="KEY-GOES-HERE"
s3Secret="SECRET-GOES-HERE"
@anthonyeden
anthonyeden / metaradio_input.php
Created June 28, 2018 20:48
MetaRadio: Simple PHP Now Playing Script (Example)
<?php
// This script receives data from MetaRadio's HTTP Output module
// This is a simple example. Feel free to make it your own.
// https://mediarealm.com.au/metaradio/
// Specify a secret username and password
$username = "---SECRET-USERNAME---";
$password = "---PASSWORD-USERNAME---";
@anthonyeden
anthonyeden / Windows-10-Basic-Cleanup.ps1
Created December 18, 2018 10:47
Windows 10 Basic Cleanup - Powershell
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 / silence_gpio.py
Created January 28, 2020 09:56
LWRP Example: Silence Detection & GPIO
# Requires https://github.com/anthonyeden/Livewire-Routing-Protocol-Client
import time
from LWRPClient import LWRPClient
# Connect to audio node
LWRP_Audio = LWRPClient("192.168.1.5", 93)
LWRP_Audio.login()
# Connect to GPIO node
LWRP_Logic = LWRPClient("192.168.1.5", 93)
@anthonyeden
anthonyeden / MetaRadioFile.xml
Last active February 12, 2020 03:02
Simian XML File - MetaRadio Template
<?xml version="1.0"?>
<MetaNow>
<Type><![CDATA[<!--BSICATEGORY-->]]></Type>
<StartTimestamp><![CDATA[<!--BSIDATE--> <!--BSITIME-->]]></StartTimestamp>
<Duration><![CDATA[<!--BSILENGTH-->]]></Duration>
<Title><![CDATA[<!--BSITITLE-->]]></Title>
<Artist><![CDATA[<!--BSIARTIST-->]]></Artist>
<Album><![CDATA[<!--BSIALBUM-->]]></Album>
<Filename><![CDATA[<!--BSICURRENTFILE-->]]></Filename>
</MetaNow>
@anthonyeden
anthonyeden / MetaRadioTemplate.xml
Created February 13, 2020 09:49
MBStudio MetaRadio Template
<?xml version="1.0"?>
<MetaNow>
<Type><![CDATA[%code0%]]></Type>
<StartTimestamp><![CDATA[%time0%]]></StartTimestamp>
<Duration><![CDATA[%duration0%]]></Duration>
<Title><![CDATA[%title0%]]></Title>
<Artist><![CDATA[%artist0%]]></Artist>
<Album><![CDATA[%album0%]]></Album>
<Filename><![CDATA[%file0%]]></Filename>
</MetaNow>