Skip to content

Instantly share code, notes, and snippets.

View kylefowler's full-sized avatar

Kyle Fowler kylefowler

View GitHub Profile
@kylefowler
kylefowler / setup.sh
Last active January 12, 2017 22:33
Setup steps for starting the sonos controlling webserver
# Python dependencies
pip install soco
pip install flask
pip install requests
# In a separate tmux window, startup the flask app
python index.py --host=0.0.0.0
# In another tmux window, startup ngrok pointing to port 5000 which is the default flask port
./ngrok http 5000
@kylefowler
kylefowler / alexaintents.json
Created January 12, 2017 20:58
All the code you need to setup your Alexa and Sonos
{
"intents": [{
"intent": "AMAZON.PauseIntent"
}, {
"intent": "AMAZON.ResumeIntent"
}, {
"intent": "AMAZON.NextIntent"
}, {
"intent": "AMAZON.PreviousIntent"
}, {
@kylefowler
kylefowler / fatjarlocal.groovy
Created February 9, 2016 02:29
Fat jar local dependencies
// Based on https://android.googlesource.com/platform/frameworks/testing/+/android-support-test/publish.gradle
project.ext {
fatJarIncludes = [ "shared-release.aar" ]
}
afterEvaluate {
android.libraryVariants.all { variant ->
Task uberJarTask =
project.tasks.create(name: "create${variant.name.capitalize()}JarWithDeps", type: Jar) {