Skip to content

Instantly share code, notes, and snippets.

@prass
prass / [email protected]
Created April 30, 2021 05:51 — forked from guettli/[email protected]
Reliable persistent SSH-Tunnel via systemd (not autossh)
# 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
@prass
prass / nn.c
Created January 19, 2018 15:41
#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];