First, install Raspbian.
This configuration works with HiFiBerry DACs and the Sabre ES9023 chip.
If you are using WiFi, turn off WiFi Power Management.
$ sudo iwconfig wlan0 power off
First, install Raspbian.
This configuration works with HiFiBerry DACs and the Sabre ES9023 chip.
If you are using WiFi, turn off WiFi Power Management.
$ sudo iwconfig wlan0 power off
#!/bin/sh -e | |
# | |
# This file belongs in /usr/lib/dhcpcd5/dhcpcd how you get it there is up to you | |
# | |
DHCPCD=/sbin/dhcpcd | |
INTERFACES=/etc/network/interfaces | |
REGEX="^[[:space:]]*iface[[:space:]](*.*)[[:space:]]*inet[[:space:]]*(dhcp|static)" | |
EXCLUDES="" |
##### ./testcafe_ubuntu.dockerfile ##### | |
# Pull base image. | |
FROM ubuntu:16.04 | |
ENV LC_ALL C | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV DEBCONF_NONINTERACTIVE_SEEN true | |
# Install. | |
RUN \ |
A script that generates an executable which will toggle XDebug on/off on your local development environment.
$> curl -o install_xdebug_toggle.sh https://gist.githubusercontent.com/jimdelois/245c50bd7d31baa774c07644a39f30f9/raw/install_xdebug_toggle.sh
$> chmod +x install_xdebug_toggle.sh
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
ADAPTER="eth0" | |
# Allow overriding from eth0 by passing in a single argument |
#!/bin/bash | |
# | |
# This version uses September 2017 august stretch image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |
#Python Script Setup
To get the python script running, run either pip install flask
or pip install -r requirements.txt
if you used git clone
to clone the gist
#libspotify_embedded_shared.so
notes
##Using the library (still in progress)
There's a compile.sh
that compiles a program that calls SpInit()
, but doesn't get any farther because it needs more than just the API version number (which is 4)
##Spotify appkey
Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2022-04-04 at the time of this writing).
Insert your microSD card. Use Raspberry Pi Imager to burn the image to your microSD card. Make to select "Set username and password" in the config before starting. Name the user pi
and select your own password.
Ensure the disk is mounted again, then enable SSH.
$ touch /Volumes/boot/ssh
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Thomas Fuchs <http://mir.aculo.us/> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |