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
| # Reliable persistent SSH-Tunnel via systemd (not autossh) | |
| # https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service | |
| [Unit] | |
| Description=Tunnel for %i | |
| After=network.target | |
| [Service] | |
| User=tunnel | |
| ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #define INPUT_NODES 3 | |
| #define HIDDEN_NODES 3 | |
| #define OUTPUT_NODES 1 | |
| float inputs[INPUT_NODES]; | |
| float hidden_weights[INPUT_NODES * HIDDEN_NODES]; |