Installing packages.
opkg update
opkg install kmod-i2c-gpio-custom i2c-tools
Loading I2C bus drivers. Using pins 7 (SDA) and 8 (SCL).
insmod i2c-dev
insmod i2c-gpio-custom bus0=0,7,8
| { | |
| "_id" : "bBhFY4iLYtrmhzmDE", | |
| "type" : "ai1", | |
| "input" : [ | |
| 0.996078431372549, | |
| 0.996078431372549, | |
| 0.996078431372549, | |
| 0.996078431372549, | |
| 0.996078431372549, | |
| 0.996078431372549, |
| (function () { | |
| // IndexedDB | |
| var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, | |
| IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.OIDBTransaction || window.msIDBTransaction, | |
| dbVersion = 2.0; | |
| // Create/open database | |
| var request = indexedDB.open("soundScapeFiles", dbVersion), | |
| db, | |
| createObjectStore = function (dataBase) { |
| #!/bin/bash | |
| # Docker version >= 1.9 | |
| echo "Cleaning up exited containers..." | |
| docker ps -a -qf status=exited | xargs -r docker rm | |
| echo "Cleaning up orphanted images..." | |
| docker images -qf dangling=true | xargs -r docker rmi | |
| echo "Cleaning up orphanted volumes..." | |
| docker volume ls -qf dangling=true | xargs -r docker volume rm |
| define([ | |
| 'ractive', | |
| 'module'], | |
| function(Ractive, module) { | |
| return Ractive.extend({ | |
| template: '{{# isLoaded }}<innerComponent />{{/ isLoaded }}', | |
| components: { | |
| innerComponent: function() { |
Installing packages.
opkg update
opkg install kmod-i2c-gpio-custom i2c-tools
Loading I2C bus drivers. Using pins 7 (SDA) and 8 (SCL).
insmod i2c-dev
insmod i2c-gpio-custom bus0=0,7,8
| #!/bin/sh /etc/rc.common | |
| # Yota 4G Internet keep alive script | |
| START=10 | |
| STOP=15 | |
| start() { | |
| echo 'starting' | |
| ping www.ru | |
| while [ $? -ne 0 ]; do |
| [all] | |
| 127.0.0.1 | |
| [all:vars] | |
| project_root = /vagrant | |
| upstart_criteria = vagrant-mounted | |
| project_url = localhost | |
| ansible_sudo = true | |
| ansible_ssh_user = vagrant | |
| ansible_ssh_port = 2222 |
| var cursor = db.<collection>.find(); | |
| while (cursor.hasNext()) { | |
| var doc = cursor.next(); | |
| db.<collection>.update({_id : doc._id}, { $set : { <field>: new Date(doc.<field>)} }) | |
| } |
| # add the docker group if it doesn't already exist. | |
| sudo groupadd docker | |
| # Add the connected user to the docker group. | |
| sudo gpasswd -a ${USER} docker | |
| # Restart the Docker daemon | |
| sudo service docker restart | |
| # Activate the changes on groups | |
| newgrp docker |
| Since Boot2docker 1.3.1, just need to set DOCKER_TLS=no at VM side. | |
| $ boot2docker ssh -t 'sudo vi /var/lib/boot2docker/profile' |