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 { |
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 |
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. | |
-- |
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 |
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] |
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> |
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": [ |
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() |
View metaradio_input.php
<?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---"; |