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 / 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 / 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 / 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 / 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 / gist:3411fc2410b1724c8808ccf9509fe75b
Created August 4, 2018 11:52
Dalet 5.1e - Get Titles in Class
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
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 / sample_map_with_markers.html
Last active September 25, 2022 20:17
OpenStreetMap & OpenLayers: Creating A Map With Markers
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenStreetMap &amp; OpenLayers - Marker Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css">
<script src="https://openlayers.org/en/v4.6.5/build/ol.js" type="text/javascript"></script>
<script>
@anthonyeden
anthonyeden / simplistic-ffmpeg-streaming.py
Created May 28, 2018 11:46
Sending FFmpeg output to HTTP, via Python's Flash
"""
Streaming FFmpeg to HTTP, via Python's Flask.
This is an incredibly simple example, which will yield issues due to inconsistant input and output rates.
If you're going to use this, VLC works okay as a client.
You really need to move FFmpeg into a separate thread, which should help stream audio more consistantly to the HTTP client.
Example by Anthony Eden (https://mediarealm.com.au)
"""
from flask import Flask
@anthonyeden
anthonyeden / command-dshow-listinputs.txt
Last active December 14, 2020 13:44
FFmpeg - Streaming to Icecast from Line In (192Khz FLAC)
ffmpeg -list_devices true -f dshow -i dummy
@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!!!
################################################################