Skip to content

Instantly share code, notes, and snippets.

View timrichardson's full-sized avatar

Tim Richardson timrichardson

  • GrowthPath
  • Melbourne, Australia
View GitHub Profile
@timrichardson
timrichardson / amazon_music_linux.md
Last active February 18, 2024 12:44
Amazon Music Linux External DAC high bit rates

Amazon Music streams different tracks at different rates, many above the default bit rate that pipewire ships with. This is how to fix it.

Firstly, I am running the Windows Amazon Music app via Crossover, a user-friendly version of wine. It works, it's stable. Ubuntu 22.04. Getting the app can annoying. Once you have the download file, keep it. The app automatically updates and amazingly this works in Linux too. here are some tips: https://uk.amazonforum.com/s/question/0D56Q0000CMRC0dSQH/amazon-music-desktop-app-deletedmissing

Reduce CPU use: I get much, much lower CPU by turning on the DXVK Advanced Option in the Crossover Bottle setting, which keeps the PC fans almost silent for me. The app has an option to use Hardware Accelarated Rendering. I doubt this works on Linux, and it makes no difference. The app doesn't do much rendering while playing back, perhaps this is more for browsing.

@timrichardson
timrichardson / celery_heartbeat_kubernetes.md
Last active March 4, 2024 07:48
kubernetes health check for celery

from celery/celery#4079 (comment)

from celery import Celery, bootsteps
from celery.signals import after_setup_logger, setup_logging, worker_ready, worker_shutdown

HEARTBEAT_FILE = Path("/tmp/worker_heartbeat")
READINESS_FILE = Path("/tmp/worker_ready")