Skip to content

Instantly share code, notes, and snippets.

sjdv1982 /
Created September 7, 2017 13:12
QLayout that keeps fixed aspect ratio of its only widget.
# Sjoerd de Vries, 2017
# partially based on code ported from, copyright (c) 2017 Pavel Perina
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
thomasfr / autossh.service
Last active March 22, 2023 14:09
Systemd service for autossh
View autossh.service
Description=Keeps a tunnel to '' open
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)