Skip to content

Instantly share code, notes, and snippets.

View bheisig's full-sized avatar

Ben bheisig

View GitHub Profile
@bheisig
bheisig / install_rt4.4_on_debian8.6.md
Last active October 4, 2021 12:49
Install Request Tracker (RT) 4.4.1 on Debian GNU/Linux 8.6 (Or: How I survived Perl's CPAN dependency hell…)
@bheisig
bheisig / pi3_browser-only.md
Last active January 15, 2024 08:05
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen
@bheisig
bheisig / pulseaudio.md
Last active June 7, 2022 16:27
PulseAudio for Kodi, MPD and remote access on a Ubuntu host

Pulseaudio the hard way

After weeks of struggling how to setup PulseAudio properly on a server for concurrent audio sources I finally found a way. This is a little guide through the process.

Motivation

In my living room there is a little server machine for a lot of purposes. For example, it is connected to my A/V receiver (and obviously a TV) so I can use this machine for playing audio and video. My setup is the following:

  • Kodi for playing movies, series, and live TV (over DVB-T2)
@bheisig
bheisig / pwned.sh
Created February 17, 2019 13:14
Have I been pwned? One-liner bash script to check your passwords (requires BASH v4)
read -s -p "Password: " p; echo; h="$(echo -n $p | sha1sum | cut -d' ' -f1)"; echo "SHA1: $h"; s="${h:0:5}"; u="https://api.pwnedpasswords.com/range/$s"; echo "HTTP GET $u"; r=$(curl -s "$u"); c=0; for l in $r; do t="$(echo "${s}${l%:*}" | tr 'A-Z' 'a-z')"; test "$t" == "$h" && c="$(echo ${l##*:} | tr -d "[:cntrl:]")"; done; echo "Your password has been pwned $c time(s)"
@bheisig
bheisig / Dockerfile
Last active January 12, 2022 14:28
Base Docker image to run latest npm with Debian 10 "buster"
FROM debian:buster
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-l", "-euxo", "pipefail", "-c"]
RUN apt-get update; \
apt-get full-upgrade -y; \
apt-get install -y --no-install-recommends \
ca-certificates \