Skip to content

Instantly share code, notes, and snippets.

@zpetr
zpetr / autossh.service
Last active January 31, 2021 19:42 — forked from thomasfr/autossh.service
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@zpetr
zpetr / .gitignore
Last active May 9, 2023 00:31 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #