Skip to content

Instantly share code, notes, and snippets.

"""Retrieve the weather forecast for the current location."""
__author__ = 'Rupert Plumridge <[email protected]>'
__copyright__ = 'Copyleft (c) 2010, The World.'
__license__ = 'Creative Commons Attribution-Non-Commercial-Share Alike 3.0 Unported Licence'
# based on the weather.py script by T.V. Raman <[email protected]>,from Google, from the ASE Python script examples
import urllib2, re
#!/bin/bash
#updated ffmpeg progress indicator
#by Rupert Plumridge
#for updates visit www.prupert.co.uk
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html
# which was based on my initital progress script - circle of life and all that ;)
# version 2.0
# 07.04.2011
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion
@pruperting
pruperting / gist:9c8ac97e73e4fc75acfdd64ddcb06237
Created September 18, 2024 21:19
Detailed logs from navidrome jukebox mode
Sep 18 22:15:38 hc2audioserver navidrome[20591]: time="2024-09-18T22:15:38+01:00" level=debug msg="Processing GetDevice" user=prupert
Sep 18 22:15:38 hc2audioserver navidrome[20591]: time="2024-09-18T22:15:38+01:00" level=info msg="JukeboxControl request received" action=set requestId=hc2audioserver/WO914CAHl2-000002
Sep 18 22:15:38 hc2audioserver navidrome[20591]: time="2024-09-18T22:15:38+01:00" level=debug msg="Processing Set action" device="Name: internal, Gain: 1.0000, Loaded track: %!s(<nil>)" ids="[]" requestId=hc2audioserver/WO914CAHl2-000002
Sep 18 22:15:38 hc2audioserver navidrome[20591]: time="2024-09-18T22:15:38+01:00" level=debug msg="Processing Clear action" device="Name: internal, Gain: 1.0000, Loaded track: %!s(<nil>)" requestId=hc2audioserver/WO914CAHl2-000002
Sep 18 22:15:38 hc2audioserver navidrome[20591]: time="2024-09-18T22:15:38+01:00" level=debug msg="Processing Add action" device="Name: internal, Gain: 1.0000, Loaded track: %!s(<nil>)" ids="[]" requestId=hc2audioserver/WO914CAHl2-00000
@pruperting
pruperting / gist:ee97230cf1c9ca859f44e4d34328234a
Created October 25, 2025 16:06
Updated essentia with Gia dockerfile for portainer
FROM ubuntu:20.04
ARG ESSENTIA_VERSION=2.1_beta5
ENV LANG C.UTF-8
# Install runtime dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-matplotlib python3-numpy python3-six python3-yaml \
libfftw3-3 libyaml-0-2 libtag1v5 libsamplerate0 \