Skip to content

Instantly share code, notes, and snippets.

@gAlleb
gAlleb / sse_cf_demo.js
Last active May 27, 2024 02:39 — forked from Moonbase59/sse_cf_demo.html
AzuraCast HPNP (High-Performance Now Playing) example for station websites, using SSE (Server-Sent Events)
// sse_hpnp.js
//
//
// 2023-12-01 Moonbase59
// 2023-12-02 Moonbase59 - retry forever on errors, workaround for Chrome bug
// - add player autostart
// - add album art alt text, link title
// 2023-12-04 Moonbase59 - add localStorage cache for better UX
// 2023-12-05 Moonbase59 - code cleanup, add translatable strings
// - use event listener instead of .onreadystatechange
@gAlleb
gAlleb / Christmas_Lights_Azuracast.css
Last active May 14, 2024 12:54
Christmas Lights for Azuracast Public Page (quick and very dirty)
.lightrope {
text-align: center;
white-space: nowrap;
overflow: hidden;
position: absolute;
z-index: 9999;
margin: -17px 0 0 0;
padding: 0;
pointer-events: none;
width: 100%;
@gAlleb
gAlleb / Snowflakes_Azuracast.css
Created December 25, 2023 11:34
Snowflakes_Azuracast
.snowflakes-container {
overflow: hidden;
filter: drop-shadow(0 0 10px #65b2e4);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0
}
@gAlleb
gAlleb / .md
Last active May 7, 2024 09:20 — forked from joepie91/.md
Running a Node.js application using nvm as a systemd service

Read this first!

Hi there! Since this post was originally written, nvm has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!


The original article

Trickier than it seems.