Skip to content

Instantly share code, notes, and snippets.

View BusterNeece's full-sized avatar

Buster Neece BusterNeece

View GitHub Profile
@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',
@BusterNeece
BusterNeece / video_stream.liq
Last active June 26, 2025 18:43
Liquidsoap 2.1 Video Stream with HLS
# Update:
# I am moving this script back to its original home as part of the AzuraCast repository:
# https://github.com/AzuraCast/radio-video-stream
# --
# See updated instructions there.
@BusterNeece
BusterNeece / mkpascal_with_azuracast.liq
Last active February 26, 2025 16:38
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 / broadcast.sh
Created May 13, 2017 03:29
FunkyWayFM: The shell script used to merge the video feed and AzuraCast-powered radio feed into a single YouTube stream.
#! /bin/bash
VBR="1500k"
FPS="30"
QUAL="veryfast"
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
KEY=""
VIDEO_SOURCE="/home/ubuntu/video3.mp4"

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 / 00-setup.md
Last active December 5, 2024 18:55
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 / 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
@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 / .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>