Skip to content

Instantly share code, notes, and snippets.

@pappou99
pappou99 / asound.conf
Created October 2, 2025 10:20 — forked from xmawja/asound.conf
Setting the default device sound card alsa/pulsausio/pipewire on gnu/linux
## check available sound card that attached to your system.
# cat /proc/asound/cards
## or better check card name to use insted of card number.
# cat /sys/class/sound/card*/id
## guide https://wiki.gentoo.org/wiki/ALSA#.7E.2F.asoundrc
# verification used driver
LANG=C pactl info | grep "Server Name"
# add user to audio group
@pappou99
pappou99 / android-backup-apk-and-datas.md
Created November 9, 2023 16:42 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@pappou99
pappou99 / README.md
Created March 3, 2022 11:15 — forked from savetheclocktower/README.md
Using a rotary encoder as a volume control for the Raspberry Pi

Using a rotary encoder as a volume control

On my RetroPie machine I wanted a hardware volume knob — the games I play use a handful of emulators, and there's no unified software interface for controlling the volume. The speakers I got for my cabinet are great, but don't have their own hardware volume knob. So with a bunch of googling and trial and error, I figured out what I need to pull this off: a rotary encoder and a daemon that listens for the signals it sends.

Rotary encoder

A rotary encoder is like the standard potentiometer (i.e., analog volume knob) we all know, except (a) you can keep turning it in either direction for as long as you want, and thus (b) it talks to the RPi differently than a potentiometer would.

I picked up this one from Adafruit, but there are plenty others available. This rotary encoder also lets you push the knob in and treats that like a button press, so I figured that would be useful for toggling mute on and off.