Skip to content

Instantly share code, notes, and snippets.

View seanschneeweiss's full-sized avatar

Sean Schneeweiss seanschneeweiss

View GitHub Profile
#!/bin/bash
# Simple backup with rsync
# local-mode, tossh-mode, fromssh-mode
SOURCES=(/root /etc /home /boot )
TARGET="/media/backup"
# edit or comment with "#"
#LISTPACKAGES=listdebianpackages # local-mode and tossh-mode
MONTHROTATE=monthrotate # use DD instead of YYMMDD
version: '3.8'
services:
snipe-mysql:
container_name: snipe-mysql
image: mysql:5.6
env_file:
- ./.env
volumes:
- snipesql-vol:/var/lib/mysql
@seanschneeweiss
seanschneeweiss / webdav-sso.ps1
Last active December 8, 2020 14:11
Nextcloud auto login (SAML/SSO) and webdav mapping
# Connect Nextcloud Webdav with app password from autologin
function Write-Log {
Param($messageToOut)
$message = ('time="{0}" msg="{1}"' -f @((Get-Date -Format o), $messageToOut))
Write-Host $message
$logFile = ($env:TEMP + "\nextcloudLogin.log")
$message >> $logFile
}