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
from http://industrialinternet.co.uk/node-red/adding-https-ssl-to-node-red/ | |
- go to .node-red directory | |
- create a public directory: mkdir public | |
- go to public: cd public | |
- Create a certificate | |
openssl genrsa -out privatekey.pem 1024 | |
openssl req -new -key privatekey.pem -out private-csr.pem | |
openssl x509 -req -days 365 -in private-csr.pem -signkey privatekey.pem -out certificate.pem | |
- cd .. |
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
<table> | |
<tr> | |
<th ng-repeat="(key,value) in table[0]">{{key}}</th> | |
</tr> | |
<tbody ng-repeat="row in table"> | |
<tr ng-if="$even"> | |
<td ng-repeat="(key,value) in row">{{value}}</td> | |
</tr> | |
<tr ng-if="$odd"> | |
<td style="background-color:#f1f1f1" ng-repeat="(key,value) in row">{{value}}</td> |
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
import asyncio | |
import time | |
from urllib.request import urlopen | |
@asyncio.coroutine | |
def count_to_10(): | |
for i in range(11): | |
print("Counter: {}".format(i)) | |
yield from asyncio.sleep(.5) |
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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script> | |
(function () { | |
/** | |
* THIS OBJECT WILL ONLY WORK IF your target is positioned relative or absolute, |
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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script> | |
(function () { | |
/** | |
* THIS OBJECT WILL ONLY WORK IF your target is positioned relative or absolute, |
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
npm install -g windows-build-tools |
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
https://www.netblocks.eu | |
http://sandboxelectronics.com | |
http://www.kaayee.com/ | |
http://www.ifroglab.com | |
http://www.lilygo.cn | |
http://www.rakwireless.com/en/ | |
https://www.futurashop.it | |
https://bsfrance.fr | |
http://www.dorji.com/ | |
https://www.digitalsmarties.net/ (jeelab shop) |
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
- create an ubuntu docker container with kitematic | |
- load ssh-server with apt-get | |
- edit /etc/ssh/ssh_config and undash PasswordAuthentication yes | |
- restart ssh (su + service ssh restart) | |
- add a new user in the admin | |
example: adduser gbrault | |
then usermod -aG sudo gbrault | |
- add an host port 2222 to container 22 in kitematic | |
open localhost:2222 with winscp or putty |
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
https://github.com/netbeast/docs/wiki/Cross-Compile-Nodejs-for-OpenWrt |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;"> | |
Your browser does not support the HTML5 canvas tag.</canvas> | |
<script> | |
var c = document.getElementById("myCanvas"); |
NewerOlder