Skip to content

Instantly share code, notes, and snippets.

@atetzner
atetzner / Pipewire-Systemd-Service.md
Last active June 1, 2026 08:08
Start Pipewire on a headless machine as systemd system service on boot (including support for Bluetooth speakers / headphones)

Pipewire Systemd service

The following Ansible tasks will perform all necessary steps to start Pipewire as a Systemd system service that runs directly on startup and is available for all non-user services like MPD or Airsonic. The steps are adapted from this Gitlab issue and have originally been created for a RaspberryPi 5 headless machine with Raspberry Pi OS (64 bit Debian bookworm).

Note that Pipewire Pulse is also installed and gets configured to be available on network. This allows e.g. remote configuration, volume changes, etc.

audio-settings script and pipewire-settings.service

@bagbag
bagbag / index.html
Last active October 29, 2023 10:20
MediathekViewWeb API Samplecode
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MediathekViewWeb API</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
@prasanthj
prasanthj / native-mem-tracking.md
Last active June 5, 2024 12:48
Native memory tracking in JVM

Enable native memory tracking in JVM by specifying the following flag

-XX:NativeMemoryTracking=detail

Know the <PID> of the java process

jps

To print ps based RSS

ps -p <PID> -o pcpu,rss,size,vsize

To print native memory tracking summary

@joergschiller
joergschiller / a2dp_sink_ubuntu_linux.md
Created January 24, 2012 23:05
A2DP Sink on Ubuntu Linux with bluez (streaming bluetooth stereo audio from smartphone to pc)

Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez

  1. Add Enable=Source to /etc/bluetooth/audio.conf right after [General].

  2. Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan.

  3. Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX and sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes.

  4. Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink: