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
| # Add this part to your cloudflared config | |
| ingress: | |
| - hostname: n8n.yourcustomdomain.com | |
| service: http://traefik:80 |
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
| services: | |
| traefik: | |
| image: traefik:v2.10 | |
| container_name: traefik | |
| restart: unless-stopped | |
| command: | |
| - "--api=true" | |
| - "--api.insecure=true" | |
| - "--providers.file.directory=/etc/traefik/dynamic" | |
| - "--providers.docker=true" |
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 python | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| import SocketServer | |
| import serial | |
| ser = serial.Serial("/dev/serial0", baudrate=19200, timeout = 5) | |
| def send_bytes(bytes): | |
| tosend = [0xF5] + bytes + [bytes[0]^bytes[4], 0xF5] |
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
| 2: | |
| public static int whereIsMaxValue(int[] table) { | |
| int max; | |
| int maxIndex = -1; | |
| for (int i = 0; i < table.length; i++) { | |
| if (table[i] > max) { | |
| max = table[i]; | |
| maxIndex = i; | |
| } |