Skip to content

Instantly share code, notes, and snippets.

@thunfischbrot
thunfischbrot / docker-compose.yml
Created March 18, 2018 01:02
plik docker-compose.yml for docker-compose-letsencrypt-nginx-proxy-companion
version: '3'
services:
plik:
hostname: upload.xyz.com
container_name: upload
image: rootgg/plik:latest
environment:
- VIRTUAL_HOST=upload.xyz.com
- VIRTUAL_PORT=8080
@thunfischbrot
thunfischbrot / unison@.service
Created February 20, 2018 10:51
Unison systemd service
# /etc/systemd/system/unison@.service
# Starts unison with the .prf-config of your choice
# Create a unison .prf-config such as
# https://gist.github.com/thunfischbrot/3efbd4a87785615a61e4f5fd875f2699
# Set the HOME Environment variable below to the user's home dir
# Reload systemd services
# systemctl daemon-reload
# Start service with name of your .prf
# systemctl start unison@20Documents
# systemctl status
@thunfischbrot
thunfischbrot / 10Documents.prf
Last active February 20, 2018 10:54
Unison settings for continuous mirror
# /root/.unison/10Documents.prf
# Create one config file for each folder, or add one per
# root folder and add subfolders via
# path = 10Documents
# path = 20Media
# To make this unison job load at machine startup use an init-script
# or systemd service such as
# https://gist.github.com/thunfischbrot/0b6a21a84f166c4fa74fc5df4a470b17
# local root to sync
@thunfischbrot
thunfischbrot / autossh.init.sh
Last active January 23, 2018 21:32 — forked from Clement-TS/autossh.init.sh
Autossh init script (Ubuntu) for ssh tunneling
#! /bin/sh
# author: Clément Désiles
# date: 01/08/2016
# source: https://gist.github.com/suma/8134207
# source: http://stackoverflow.com/questions/34094792/autossh-pid-is-not-equal-to-the-one-in-pidfile-when-using-start-stop-daemon
### BEGIN INIT INFO
# Provides: autossh
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog