Skip to content

Instantly share code, notes, and snippets.

@dmpanch
dmpanch / docker-compose.yml
Created April 25, 2024 21:12
qbittorrent + telegram bot + plex + timemachine
version: '3.9'
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- WEBUI_PORT=8080
import RPi.GPIO as GPIO
import time
import os
os.system('raspi-gpio set 13 ip')
GPIO.setmode(GPIO.BCM)
GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP)
os.system('amixer sset "PCM" 0%')
# enable pwm on GPIO 13
dtparam=audio=on
dtoverlay=pwm,pin=13,func=4,enable_jack
# display settings
gpio=0-9=a2
gpio=12-17=a2
gpio=20-25=a2
dtoverlay=dpi24
enable_dpi_lcd=1
version: '3'
services:
nexmo:
image: nexmodev/nexmo-oas-renderer:latest
ports:
- '4567:4567'
restart: always
environment:
@dmpanch
dmpanch / howto_create_online_radio_macos_sierra.txt
Last active June 30, 2024 06:14
How to create internet radio on MacOS Sierra 10.12
All actions are performed in Terminal.app.
1. Install Homebrew http://brew.sh/
2. Install Jack (route audio tool) http://jackaudio.org/. Current stable version from official website doesn't work with
MacOS Sierra (I use 10.12.3) so you need to download beta version from there https://yadi.sk/d/JwT10b7v3Dm5yy.
After installing reboot your computer.
3. Install Darkice (audio streamer) via brew.