This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1 hidden={hidden} disabled={disabled}>Hello {name}!</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install -t jessie-backports ffmpeg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 \ |