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 / README.md
Last active February 14, 2023 06:33
MetaRadio: MegaSeg Template

This template allow you to send data from MegaSeg to MetaRadio.

Either template can be used, but users of MegaSeg 6.2.3 or later should use the JSON format.

To set this up, go to MegaSeg > Settings > Logging, select 'Telnet' from the dropdown, paste the template into the "Server URL field" and check the box next to "Send track info to server". All other fields can be left empty.

Ensure you change the IP Address "127.0.0.1" to the IP Address of your computer running MetaRadio, and make sure you use the same port number (e.g. 23901) in both MegaSeg and MetaRadio.

@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 / 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 / example.json
Created April 12, 2022 06:54
MetaRadio: Station Guide API Endpoint Example
{
"generated": "Tue, 12 Apr 2022 06:37:18 GMT",
"guide": [
{
"programId": "1",
"name": "Anthony's Music",
"presenter": "Mr Eden",
"image_600": "https://amrap-pages-image.s3.amazonaws.com/profile/8773.jpg?cacbeb=3703307",
"image_post_featured": null,
"image_post_featured_square": null,
@anthonyeden
anthonyeden / qsys-esp32-tally.ino
Created March 6, 2021 10:40
Q-SYS Camera Tally - ESP32 M5StickC
/*****************
ESP32 Tally Light for Q-SYS
Version 1.0
A wireless (WiFi) tally light for Q-SYS, based on the M5StickC ESP32 development board and the Arduino IDE.
Based on: https://github.com/oneguyoneblog/tally-light-esp32-for-blackmagic-atem-switcher/blob/master/tally-light-esp32-for-blackmagic-atem-switcher.ino
******************/
#include <M5StickC.h>
#include <WiFi.h>
@anthonyeden
anthonyeden / readme.md
Last active January 7, 2022 01:20
MetaRadio PlayIt Live Template
@anthonyeden
anthonyeden / icecast_config_sample.xml
Created August 9, 2016 02:04
Icecast Geoblocking Example
<mount>
<mount-name>/mountname</mount-name>
<password>hackme</password>
<!-- Geo-blocking can be added to any mount, but not relays -->
<authentication type="url">
<option name="listener_add" value="http://example.com/icecast_geoblock.php?mount=mountmame" />
<option name="auth_header" value="icecast-auth-user: 1" />
</authentication>
</mount>
@anthonyeden
anthonyeden / facebook-live-video-scraper.txt
Last active June 27, 2021 12:46
Facebook Live Embed Scraper
This script allows you to scrape a Facebook page for live videos, and generate a iframe embed code for your website. It uses Selenium Firefox web driver. You may get banned if you run this too often - this is yet to be seen.
The file `livestream-data.json` will be updated with extra fields if/when a live video is found.
@anthonyeden
anthonyeden / ParadoxPythonExample.py
Last active June 24, 2021 12:25
Paradox Database: Connect & Query in Python
# A sample script to create a temporary copy of a Paradox database, connect to it, and query it.
# Requires PyPyODBC: https://pypi.python.org/pypi/pypyodbc
# Written by Anthony Eden - http://mediarealm.com.au/
import os
import shutil
import pypyodbc
@anthonyeden
anthonyeden / countdown_5mins.txt
Created July 21, 2019 08:49
Adobe After Effects - Countdown Expressions
st = 300;
t = st - time;
c = timeToTimecode(t);
c = c.substring(4,8)
c