Skip to content

Instantly share code, notes, and snippets.

View bodnaristvan's full-sized avatar

Bodnár István bodnaristvan

View GitHub Profile
@bodnaristvan
bodnaristvan / slider.css
Last active July 6, 2020 12:53
CSS-only slider toggle input
input {
display: none;
}
label {
position: relative;
display: flex;
align-items: center;
width: 200px;
height: 30px;
@bodnaristvan
bodnaristvan / README.md
Last active October 7, 2022 19:22
HifiBerry with USB DAC

remove line that overrides config.txt

In /opt/hifiberry/bin/detect-hifiberry: comment out these lines:

echo "dtoverlay=hifiberry-dac" >> /boot/config.txt
...
echo "Enabling DAC+ Light" >> $REBOOTFILE

update mpd conf to use "sysdefault" as sound device

@bodnaristvan
bodnaristvan / README.md
Last active October 21, 2022 09:52
Using a Samsung AH59-02532A remote with Linux

Preface

Fuck this whole thing. Why does it have to be so outdated and complicated?!

Main things

  • ir-keytable and triggerhappy are the MVPs
  • no need for lirc at all, which just installs 100meg of unused GTK & Gnome stuff
  • this samsung remote uses keycodes from two different protocols (necx + samsung)

Setting up infrared receiver

(This is Raspberry Pi specific).