Skip to content

Instantly share code, notes, and snippets.

View mdubb86's full-sized avatar

Michael Waage mdubb86

View GitHub Profile
@mdubb86
mdubb86 / createdb.sql
Last active July 18, 2019 19:28
Create Postgres DB
\c postgres
drop database if exists :name;
drop role if exists :name;
create role :name with login noinherit password :'password';
create database :name owner :name;
@mdubb86
mdubb86 / App.html
Created June 22, 2018 02:06
Hello World!
<h1 hidden={hidden} disabled={disabled}>Hello {name}!</h1>
apt-get install -t jessie-backports ffmpeg
@mdubb86
mdubb86 / setup.sh
Last active February 1, 2019 09:35
snapclient-on-rpi
VERSION=0.11.1
HOST=192.168.0.77
wget https://github.com/badaix/snapcast/releases/download/v0.11.1/snapclient_${VERSION}_armhf.deb
sudo dpkg -i snapclient_${VERSION}_armhf.deb
sudo apt-get -f -y install
sudo sed -i "s/SNAPCLIENT_OPTS=\"\"/SNAPCLIENT_OPTS=\"-h ${HOST}\"/" /etc/default/snapclient
# From https://gist.github.com/vees/b52fcf0cccde403472a4058761aa3b50
# Setup Darkice
echo "deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi" | sudo tee --append /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libmp3lame-dev
apt-get source darkice
cd darkice-1.2/
./configure --prefix=/usr --sysconfdir=/usr/share/doc/darkice/examples \
--with-lame --with-lame-prefix=/usr/lib/arm-linux-gnueabihf \
@mdubb86
mdubb86 / shairport-setup.sh
Last active October 4, 2021 01:37
Setup and configure shairport-sync and hifiberry amp+ on raspberry pi
#!/bin/bash
# Shairport-sync: https://github.com/mikebrady/shairport-sync
# HiFiBerry AMP+: https://support.hifiberry.com/hc/en-us/articles/205377651-Configuring-Linux-4-x-or-higher
# Install shairport-sync dependencies
sudo apt-get update && sudo apt-get install -y \
build-essential git xmltoman \
autoconf automake libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev \
avahi-daemon libavahi-client-dev \