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
| diff --git a/Makefile b/Makefile | |
| index 0be69b51..1b9c8334 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -56,11 +56,13 @@ ensure-hex: | |
| .PHONY: ensure-mix-rebar3 | |
| ensure-mix-rebar3: $(REBAR) | |
| - @mix local.rebar rebar3 $(CURDIR)/rebar3 --if-missing --force | |
| + mkdir -p /root/.mix/elixir/1-18 |
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
| diff --git a/Makefile b/Makefile | |
| index 03946e1d..d664efad 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -52,16 +52,17 @@ $(REBAR): .prepare ensure-rebar3 | |
| .PHONY: ensure-hex | |
| ensure-hex: | |
| - @mix local.hex 2.2.1 --if-missing --force | |
| + @mix archive.install github hexpm/hex branch latest --force |
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
| import eventlet | |
| from flask import Flask, send_from_directory | |
| from flask_socketio import SocketIO, emit | |
| from paho.mqtt.client import CallbackAPIVersion | |
| import paho.mqtt.client as mqtt | |
| eventlet.monkey_patch() | |
| app = Flask(__name__) |
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
| apiVersion: apps.emqx.io/v2beta1 | |
| kind: EMQX | |
| metadata: | |
| name: emqx | |
| spec: | |
| image: emqx/emqx-enterprise:5.6.0 | |
| config: | |
| data: | | |
| log.console.level = debug | |
| connectors { |
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
| #!/usr/bin/env bash | |
| set -xeuo pipefail | |
| apt update && apt install -yyq unixodbc-dev odbcinst wget unixodbc libreadline8 | |
| wget -nc 'https://sfc-repo.snowflakecomputing.com/odbc/linux/3.3.2/snowflake-odbc-3.3.2.x86_64.deb' | |
| apt install -y ./snowflake-odbc-3.3.2.x86_64.deb | |
| ODBC_INST_LIB=/usr/lib/x86_64-linux-gnu/libodbcinst.so | |
| sed -i -e "s#^ODBCInstLib=.*#ODBCInstLib=$ODBC_INST_LIB#" /usr/lib/snowflake/odbc/lib/simba.snowflake.ini |
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
| provider "google" { | |
| project = "<project_id>" | |
| region = "europe-central2" | |
| } | |
| variable "project_id" { | |
| type = string | |
| } | |
| variable "region" { |
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
| authorization { | |
| deny_action = ignore | |
| no_match = deny | |
| sources = [ | |
| { | |
| body { | |
| username = "${username}" | |
| } | |
| enable = true | |
| headers { |
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 gcr.io/datadoghq/agent:latest | |
| RUN agent integration install -r -t datadog-emqx==1.0.0 |
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
| const mqtt = require("mqtt"); | |
| const url = 'mqtts://127.0.0.1:8883' | |
| const options = { | |
| clean: true, | |
| connectTimeout: 1000, | |
| clientId: 'emqx_test', | |
| username: 'emqx_test', | |
| password: 'emqx_test', | |
| rejectUnauthorized: false, |
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
| #!/usr/bin/env python3 | |
| import asyncio | |
| import random | |
| import string | |
| import json | |
| import paho.mqtt.client as mqtt | |
| broker = 'localhost' | |
| port = 1883 | |
| alhabet = string.ascii_lowercase+string.digits |
NewerOlder