Skip to content

Instantly share code, notes, and snippets.

@dstecholution
dstecholution / mopidy.conf
Created May 13, 2022 15:17 — forked from mrpjevans/mopidy.conf
Sample mopidy.conf file for MagPi tutorials
[http]
# Make sure the web interface can be accessed by the local network
hostname = 0.0.0.0
[audio]
# Direct audio to the DAC, not HDMI
output = alsasink
# The File extension isn't of much use, so we can disable it
[file]
@dstecholution
dstecholution / gist:42a1712d5f24b0321d1c844aabe948fd
Last active May 17, 2022 15:14 — forked from moxuse/gist:4077236
icecast config example
<icecast>
<location>{{location}}</location>
<admin>{{person_of_interest_email}}</admin>
<limits>
<clients>{{maxclients}}</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
@dstecholution
dstecholution / Dockerfile
Last active May 20, 2022 22:42
transcoder
FROM wernight/mopidy:latest
ADD https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_2MG.mp3 /var/lib/mopidy/media
COPY mopidy.conf /config/mopidy.conf
RUN python3 -m pip install Mopidy-Autoplay
#settings.log.stdout.set(true)
#settings.log.level.set(3)
settings.harbor.bind_addrs.set(["0.0.0.0"])
live = input.harbor("/mopidy",port=8080,password="letmein")
#radio = fallback(track_sensitive=false,
[live])
output.icecast(%vorbis,
@dstecholution
dstecholution / liquidsoap.liq
Created May 31, 2022 18:21 — forked from cburmeister/liquidsoap.liq
An example `liquidsoap` configuration file with two input streams and two output streams to `icecast`.
#!/usr/bin/liquidsoap
# Activate the live stream input
set('harbor.bind_addr', '0.0.0.0')
# Configure input A
input_a = input.harbor(
'input_a',
port=8001,
password='bigproblem'
#!/bin/sh -x
## Dockerfile:
### COPY --chmod=755 entrypoint.sh /entrypoint.sh
### ENTRYPOINT ['/entrypoint.sh']
/usr/bin/liquidsoap -v --debug /etc/liquidsoap/script.liq
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: cheese
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: stilton.minikube
http:
#!/usr/bin/liquidsoap
# General settings
settings.log.level.set(3)
settings.log.stdout.set(true)
# Telnet server settings
settings.server.telnet.bind_addr.set("0.0.0.0")
settings.server.telnet.port.set(8500)
---
options:
dynamic_substitutions: true
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/secret-admin-token/versions/latest
env: 'ADMIN_TOKEN'
- versionName: projects/$PROJECT_ID/secrets/secrets-admin-user/versions/latest
env: 'ADMIN_USER'
- versionName: projects/$PROJECT_ID/secrets/secret-source-token/versions/latest
╷
│ Error: Saved plan is stale
│ 
│ The given plan file can no longer be applied because the state was changed
│ by another operation after the plan was created.
╵
Interrupt received.
Please wait for Terraform to exit or data loss may occur.
Gracefully shutting down...