Skip to content

Instantly share code, notes, and snippets.

View BusterNeece's full-sized avatar

Buster Neece BusterNeece

View GitHub Profile
@BusterNeece
BusterNeece / sse_cf_demo.html
Created December 14, 2023 21:22 — forked from Moonbase59/sse_cf_demo.html
AzuraCast HPNP (High-Performance Now Playing) example for station websites, using SSE (Server-Sent Events)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Server-sent events demo (Centrifugo)</title>
<!-- style the indicators: -isonline, -islive, isrequest -->
<style>
.label { border-radius: 0.1rem; padding: .1rem .2rem; background: #f0f1f4; color: #5b657a; display: inline-block; }
.label.label-success { background: #32b643; color: #fff; }
@BusterNeece
BusterNeece / rector.php
Created December 28, 2021 21:09
Rector script to migrate OpenAPI specifications from PHP Annotations to Attributes
<?php
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$openApiAnnotationsRaw = [
'AdditionalProperties',

As of the latest Rolling Release version, AzuraCast now emits a now-playing event on the public player page that you can listen to in order to update the HTML of the player page to reflect changes in the current playing song.

Among other things, you can use this to:

  • Update the background image to reflect the album art (as in the example below),
  • Show more details about the currently playing track,
  • Add supplemental information for live Streamers/DJs,
  • ...and more!

Technical Details

@BusterNeece
BusterNeece / video_stream.liq
Last active September 17, 2024 20:05
Liquidsoap 2.1 Video Stream with HLS
# What is This Script?
# This script allows you to broadcast your AzuraCast radio signal to a remote video stream, using a
# static video file that loops in the background and dynamically writing the currently playing track
# on top of that video file.
#
# This script replaces the previous "radio-video-stream" project, allowing you to manage files directly from
# within AzuraCast and not requiring any changes to your Docker configuration at all.
#
# To use this script, you must be running at least AzuraCast 0.19.0 or a later Rolling Release version.
#
@BusterNeece
BusterNeece / .config_touchegg_touchegg.conf
Created July 23, 2021 03:48
Touchegg Configuration - 3 Finger: Up shows windows, Down shows desktop, L/R Back/Forward - 4 Finger: Up/Down Volume, L/R Track Control
<touchégg>
<settings>
<property name="animation_delay">150</property>
<property name="action_execute_threshold">20</property>
<property name="color">auto</property>
<property name="borderColor">auto</property>
</settings>
<application name="All">
<gesture type="SWIPE" fingers="3" direction="DOWN">
<action type="SHOW_DESKTOP"></action>
@BusterNeece
BusterNeece / mkpascal_with_azuracast.liq
Last active June 20, 2022 21:13
Integrating the mkpascal audio processing script with AzuraCast.
# Custom Configuration (Specified in Station Profile)
# This script is customized from the original, which can be found here:
# https://github.com/mkpascal/mk_liquidsoap_processing/blob/master/process.liq
#
# It can be added to your station via `Utilities` > `Edit Liquidsoap Configuration`
# where it can then be pasted into the bottom-most open text area, before the broadcasts
# are sent out to the various sources.
# Audio Input --------------------->
@BusterNeece
BusterNeece / 00-setup.md
Last active August 12, 2022 04:32
My WSL2 Ubuntu 20.04 Environment

My local Ubuntu 20.04 WSL2 setup.

Enable and Install WSL2

From Windows, as admin:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@BusterNeece
BusterNeece / AzuraCast_CLA.md
Last active July 14, 2020 05:47 — forked from CLAassistant/SAP_CLA
AzuraCast Individual Contributor License Agreement

AzuraCast Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects ("Projects") made available as part of the AzuraCast suite of software applications and libraries.

AzuraCast is created and primarily maintained by Buster Neece ("Project Owner").

This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner,

@BusterNeece
BusterNeece / install_ubuntu.sh
Last active August 31, 2024 22:14
Pixel.horse Ubuntu Quick Install Script
#!/usr/bin/env bash
#
# Pixel.horse Easy Installer
#
# Drop this script into a folder you want to spin up Pixel.horse in, then run it!
# - Pull the script to a local file (i.e. click the "Raw" button on the top right)
# - Run `chmod a+x ./this_script_name.sh`
# - Run `./this_script_name.sh` as your regular user (not root)
#
#
@BusterNeece
BusterNeece / Caddyfile
Last active August 31, 2024 22:13
AzuraCast demo server reset script
https://demo.azuracast.com/
tls self_signed
root src
redir / https://azuracast.com/ 302
log stdout
errors stdout