This file contains hidden or 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
#!/bin/bash | |
# Usage: | |
# | |
# ssl_setup [--self] <name> <csr_config> | |
# | |
# This script is used to generate key and CSR for use HTTPS in Nginx. | |
# | |
# --self Generate self-signed certificate in addition to key and CSR. | |
# name Output files will be named as <name>.key and <name>.csr. |
This file contains hidden or 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
kubeadm join --token 9cdff1.ca31b1b3b4e5148c 192.168.178.69:6443 --discovery-token-ca-cert-hash sha256:86220bec992458b4258b8fe635eae579f9c373602e6746bcf15c8e9560a59a81 | |
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"q | |
edit .profile | |
export KUBECONFIG=$HOME/admin.conf |
This file contains hidden or 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
sudo curl -L git.io/weave -o /usr/local/bin/weave && chmod a+x /usr/local/bin/weave | |
weave setup | |
weave launch | |
sudo apt-get install --allow-downgrades -qy kubeadm=1.9.0-00 kubectl=1.9.0-00 kubelet=1.9.0-00 |
This file contains hidden or 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
1) sudo service dphys-swapfile stop | |
2) free | |
waiting for 0 | |
sudo systemctl disable dphys-swapfile | |
#sudo apt-get purge dphys-swapfile |
This file contains hidden or 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
// I2C Scanner | |
// Written by Nick Gammon | |
// Date: 20th April 2011 | |
#define SLAVE 0x2E | |
#define TGPB1 0x16 | |
#define TGPB2 0x17 | |
#define CMD01 0x44 |
This file contains hidden or 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
// I2C Scanner | |
// Written by Nick Gammon | |
// Date: 20th April 2011 | |
#include <Wire.h> | |
void setup() { | |
Serial.begin (115200); | |
// Leonardo: wait for serial port to connect |
This file contains hidden or 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
[ | |
{ | |
color: "red", | |
value: "#f00" | |
}, | |
{ | |
color: "green", | |
value: "#0f0" | |
}, | |
{ |
This file contains hidden or 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
So, finally I got a JPG stream working! | |
I modified the snx_snapshot example so that it capture an image every second, and also so that it always save the latest image with the same name in the /tmp/www folder. | |
The latest jpg can than be accessed at http://$CAM_IP/snapshot.jpg | |
So for a quick how to: | |
Download snx_snapshot here: https://drive.google.com/file/d/0BwhTA0oE8QeXZTU5bGFrWkZXcXc/view?usp=sharing | |
Copy the file snx_snapshot on your cam into /media/mmcblk0p2/data/usr/bin/ | |
In /media/mmcblk0p2/data/etc/scripts/20-rtsp-server replace the line: |
This file contains hidden or 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
docker run -d -p "2000:2000" --priviledged --restart=always --name=serialconsole --net=azure-iot-edge --device "/dev/ttyUSB0:/dev/ttyUSB0" uneidel.azurecr.io/spserver:latest /dev/ttyUSB0 |
This file contains hidden or 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
c_group in cmdline.txt | |
Docker separat installieren | |
Python 2.7 | |
https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md - Building on X86 running on armv7 |
NewerOlder