Skip to content

Instantly share code, notes, and snippets.

@PeWe79
PeWe79 / sse_cf_demo.html
Created December 16, 2023 12:30 — 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; }
@PeWe79
PeWe79 / iframe-resizer.html
Created December 25, 2023 17:43 — forked from Moonbase59/iframe-resizer.html
Responsive AzuraCast Embed Widget iframes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Iframe widget resizing test</title>
</head>
<body>
<h1>Iframe widget resizing test</h1>
@PeWe79
PeWe79 / video_stream.liq
Created April 7, 2024 17:44 — forked from BusterNeece/video_stream.liq
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.
#
@PeWe79
PeWe79 / install-sqlserver-php.md
Last active July 22, 2024 16:05
Install Microsoft SQL Server PHP Driver on Ubuntu
@PeWe79
PeWe79 / unifi_ubuntu_2004.sh
Last active July 22, 2024 16:04
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg