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
author: karim | |
description: Setup Chatbot FC on ESP32 | |
version: 1.0 | |
libs_version: ${mos.version} | |
modules_version: ${mos.version} | |
mongoose_os_version: ${mos.version} | |
filesystem: | |
- fs |
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
/********************************************************************* | |
* INCLUDES | |
*/ | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ti/sysbios/BIOS.h> | |
#include <ti/sysbios/knl/Task.h> | |
#include <ti/sysbios/knl/Clock.h> | |
#include <ti/sysbios/knl/Event.h> |
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
# reverse-proxy --port 80 --target 192.168.0.1:3000 --config ~/defaults.yaml | |
port: 443 | |
target: 192.168.43.4:80 | |
ssl: | |
cert: "/path/to/ssl/cert.file" | |
key: "/path/to/ssl/key.file" |
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/sh | |
set -e | |
# This script is meant for quick & easy install via: | |
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
# | |
# For test builds (ie. release candidates): | |
# $ curl -fsSL test.docker.com -o test-docker.sh | |
# $ sh test-docker.sh |
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/sh | |
# label node with ARMv7 32 bits | |
docker node update --label-add foo --label-add os=linux-arm <worker-arm> | |
# label node with ARMv8 64 Bits | |
docker node update --label-add foo --label-add os=linux-arm64 <worker-arm64> |
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
module.exports = { | |
apps: [{ | |
name: "app", | |
script: "app.js" | |
}], | |
deploy: { | |
// "production" is the environment name | |
production: { | |
// SSH key path, default to $HOME/.ssh | |
key: "/path/to/some.pem", |
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 | |
pip install azure-iot-edge-runtime-ctl | |
#Default IoT Edge Configuration Host Paths: | |
#------------------------------------------ | |
# Linux: /etc/azure-iot-edge | |
#$> iotedgectl setup --help | |
#$> iotedgectl setup --config-file edge_config.json | |
#$> iotedgectl --verbose DEBUG setup --config-file edge_config.json |
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
// Copyright (c) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
'use strict'; | |
var Protocol = require('azure-iot-device-mqtt').Mqtt; | |
// Uncomment one of these transports and then change it in fromConnectionString to test other transports | |
// var Protocol = require('azure-iot-device-amqp').AmqpWs; | |
// var Protocol = require('azure-iot-device-http').Http; | |
// var Protocol = require('azure-iot-device-amqp').Amqp; |
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
FROM arm64v8/node:10-alpine as build | |
WORKDIR /app | |
COPY . ./ | |
RUN npm install | |
FROM arm64v8/node:10-alpine | |
COPY --from=build /app / | |
EXPOSE 8000 |
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/sh | |
curl -sfL https://balena.io/install.sh | sh |
OlderNewer