Skip to content

Instantly share code, notes, and snippets.

View gAlleb's full-sized avatar

Stefan gAlleb

View GitHub Profile
@gAlleb
gAlleb / osx_automount_nfs.md
Created May 11, 2025 19:36 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@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.

@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 / Christmas_Lights_Azuracast.css
Last active September 27, 2024 14:33
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 / 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