Skip to content

Instantly share code, notes, and snippets.

@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():
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active May 4, 2024 15:04
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/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target