Skip to content

Instantly share code, notes, and snippets.

Benjamin Heisig bheisig

Block or report user

Report or block bheisig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bheisig / Dockerfile
Last active Oct 28, 2019
Base Docker image to run latest npm with Debian 10 "buster"
View Dockerfile
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 \
bheisig /
Created Feb 17, 2019
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="$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 /
Last active Oct 4, 2019
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.


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 /
Last active Oct 17, 2019
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen
bheisig /
Last active Jul 9, 2019
Install Request Tracker (RT) 4.4.1 on Debian GNU/Linux 8.6 (Or: How I survived Perl's CPAN dependency hell…)
You can’t perform that action at this time.