This file contains 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
<!-- This configuration file specifies the required security policies | |
for PulseAudio Bluetooth integration. --> | |
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | |
<busconfig> | |
<!-- ../system.conf have denied everything, so we just punch some holes --> | |
<policy user="pulse"> |
This file contains 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
#use edge detection to trigger button event with CHIP_IO and Adafruit GPIO Library on Next Thing Co's C.H.I.P. | |
import time | |
import CHIP_IO.GPIO as GPIO | |
# Pin configuration. | |
pinA = "XIO-P4" | |
pinB = "XIO-P5" | |
pinC = "XIO-P6" | |
# Setup input for pin |
This file contains 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
# Mopidy APT archive | |
deb http://apt.mopidy.com/ stable main contrib non-free | |
deb-src http://apt.mopidy.com/ stable main contrib non-free |
This file contains 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
# call this with an argument for the new name | |
new=${1:-toto} | |
OLD=$(hostname) | |
echo "New name for chip is ${new}" | |
echo $old | |
sudo sed -i "s/${OLD}/${new}/g" /etc/hostname | |
sudo sed -i "s/${OLD}/${new}/g" /etc/hosts |
This file contains 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
/* | |
* Copyright 2017 NextThing Co | |
* Peter Nyboer <[email protected]> | |
* This file is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License as | |
* published by the Free Software Foundation; either version 2 of the | |
* License, or (at your option) any later version. | |
* | |
* This file is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |