Skip to content

Instantly share code, notes, and snippets.

View Moonbase59's full-sized avatar
😊
Every ★ you give matters—thanks!

Matthias C. Hormann Moonbase59

😊
Every ★ you give matters—thanks!
View GitHub Profile
@gAlleb
gAlleb / Christmas_Lights_Azuracast.css
Last active December 24, 2023 17:35
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%;
@Moonbase59
Moonbase59 / ql-playlists
Last active August 20, 2023 14:20
ql-playlists – Export Quod Libet saved searches to M3U playlists. Bash script with many options.
#!/bin/bash
# ql-playlists
#
# Generate radio playlists from Quod Libet saved searches.
# Quod Libet must be running before starting this script,
# and the library should be up-to-date.
# The "Include Saved Search" plugin MUST be activated for this to work!
#
# This may not be the fastest way to do it (~250 songs/s on my system),

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

@kepano
kepano / obsidian-web-clipper.js
Last active March 28, 2024 19:29
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@Chaser324
Chaser324 / GitHub-Forking.md
Last active March 25, 2024 09:48
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j