vim /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then, save and activate the configuraiton.
| // (*) All in the spirit of open-source and open-hardware | |
| // Janost 2016 Sweden | |
| // The Tiny-TS Touch Synthesizer | |
| // https://janostman.wordpress.com/the-tiny-ts-diy-touch-synthesizer/ | |
| // Copyright 2016 DSP Synthesizers Sweden. | |
| // | |
| // Author: Jan Ostman | |
| // |
| // (*) All in the spirit of open-source and open-hardware | |
| // Janost 2017 Sweden | |
| // The Micro-TS Key fob Touch Synthesizer | |
| // https://janostman.wordpress.com/the-microts-diy-synth/ | |
| // Copyright 2017 DSP Synthesizers Sweden. | |
| // | |
| // Author: Jan Ostman | |
| // |
| #define SSD1306_SDA 4 | |
| #define SSD1306_SCL 5 | |
| #define SSD1306_SA | |
| 0x78 // Slave address | |
| import json | |
| import requests | |
| gramofon_ip = '127.0.0.1' | |
| ori_sid = '00000000000000000000000000000000' | |
| baseuri = 'http://' + gramofon_ip + '/api/' | |
| # login to get a SID | |
| dataj = {"jsonrpc":"2.0","id":"69","method":"call","params":["session","login",{"username":"admin","password":"admin"}]} | |
| r = requests.post(baseuri + ori_sid , json=dataj) |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| import sys | |
| url = sys.argv[1] | |
| page = urllib2.urlopen(url) | |
| soup = BeautifulSoup(page,'lxml') | |
| episodios = soup.find_all("a", class_="article-link") | |
| for link in episodios: |
| import os, time | |
| import glob | |
| #get current Folder | |
| folder = os.getcwd()+'/' | |
| print 'Using pictures from ' + folder | |
| fileFormats = ['JPG','jpg', 'MOV', 'mov', 'PNG', 'png', 'mp4', 'MP4', '3gp', 'jpeg']; | |
| months = ['January','February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] | |
| picPath = [] |
| /* | |
| Example code to get a MCP3*08 running with an ESP8266 | |
| for DiY energy monitoring solutions | |
| */ | |
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include "MCP3208.h" | |
| const char* ssid = "..."; | |
| const char* host = "..."; |
vim /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then, save and activate the configuraiton.
Start by flashing a SD card with the latest Raspbian Jessie Lite image. You can get it from Raspberry Pi website
| # | |
| # This the the MIDI controller profile, it keeps controller remappings for | |
| # converting one controller ID to another, and then defines which controllers | |
| # are tracked by which GUI devices. It may be edited manually, in which case | |
| # changes are maintained but the GUI can also alter the controller tracking | |
| # by typing <Control><Middle Mouse Button>, the moving the desired control. | |
| # This file is saved whenever a GUI memory is saved. | |
| # | |
| # The file contains Controller Mapping (one controller to another, for example | |
| # breath controller maps to footpedal, etc), Key Mappings for QWERTY to MIDI |