Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
| #!/bin/sh | |
| sudo apt-get update \ | |
| && sudo apt-get install -qy docker.io | |
| sudo apt-get update \ | |
| && sudo apt-get install -y apt-transport-https \ | |
| && curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| Basic MQTT bridge can be found here: | |
| https://github.com/hardillb/TRADFRI2MQTT | |
| Bridge adds a mDNS entry for a COAP sever: | |
| Service Type: _coap._udp | |
| Service Name: gw:b0-72-bf-25-bf-59 | |
| Domain Name: local | |
| Interface: wlan0 IPv4 |
| echo "USAGE: rpi-netflix.sh workdirectory" | |
| echo "THIS ASSUMES YOU HAVE CHROMIUM!!!" | |
| echo "IF NOT, PRESS CTRL+C" | |
| sleep 5 | |
| wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh | |
| echo "YOU MUST HAVE ENOUGH FREE SPACE!!!" | |
| echo "14\n" | sudo WORKDIR=$1 ./linux_recovery.sh | |
| cd $1 | |
| sudo apt-get install kpartx | |
| sudo kpartx -avs chromeos*.bin |
| #!/usr/bin/env python3 | |
| import requests | |
| # only these 5 variables have to be set | |
| HOST = 'https://wallabag.example.org' | |
| USERNAME = 'username' | |
| PASSWORD = 'password' | |
| CLIENTID = 'cryptic_client_id' | |
| SECRET = 'secret' |
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?><template><description>Demonstrates a simple pattern for inserting FlowFiles into a relational database using the PutSQL processor.</description><name>Database Insert</name><snippet><processGroups><id>f478ace0-9295-4ee9-9a25-96e3b1c3e94f</id><parentGroupId>23b56e53-a310-48e7-8a15-99d81109bdd9</parentGroupId><position><x>387.0</x><y>24.0</y></position><activeRemotePortCount>0</activeRemotePortCount><comments></comments><contents><connections><id>5e7de26e-13db-4b1b-8010-8f19f6611d49</id><parentGroupId>f478ace0-9295-4ee9-9a25-96e3b1c3e94f</parentGroupId><backPressureDataSizeThreshold>0 MB</backPressureDataSizeThreshold><backPressureObjectThreshold>0</backPressureObjectThreshold><bends><x>1030.955965197994</x><y>203.67437167941813</y></bends><bends><x>1067.0</x><y>253.0</y></bends><destination><groupId>f478ace0-9295-4ee9-9a25-96e3b1c3e94f</groupId><id>a0b3418c-096e-4138-9400-043dcc7da5ba</id><type>PROCESSOR</type></destination><flowFileExpiration>0 sec</flowF |
| #!/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 |
| node1: | |
| image: hauptmedia/mariadb:10.1 | |
| hostname: node1 | |
| ports: | |
| - 13306:3306 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=test | |
| - REPLICATION_PASSWORD=test | |
| - MYSQL_DATABASE=maria | |
| - MYSQL_USER=maria |