Skip to content

Instantly share code, notes, and snippets.

@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active November 8, 2024 00:56
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@tomMoral
tomMoral / basic_func.py
Last active February 8, 2022 15:24
Add a coverage logger thread to get access to coverage in real time
from time import sleep
def func0():
print("run func0")
sleep(1)
print("ran func0")
def func1():