Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
magicstone1412 / cloudflare-tunnel.yml
Created October 20, 2024 00:20
Cloudflare Zero Trust Tunnel docker-compose file for Openmediavault
---
services:
# cloudflare tunnel
cloudflare-tunnel:
image: cloudflare/cloudflared
container_name: cloudflare-tunnel
restart: unless-stopped
command: tunnel run
environment:
- "TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}" #Add varible to environment file
@magicstone1412
magicstone1412 / Dockerfile
Created October 27, 2024 01:38
Tor proxy using Docker
# Set the latest version of Alpine Linux as the base image
FROM alpine:latest
# Updates the package list in the Alpine package manager and installs the Tor package.
RUN apk update && apk add tor
# Instructs Tor to send log notices to the standard output
RUN echo "Log notice stdout" >> /etc/torrc
# Configures Tor to listen for SOCKS connections on all network interfaces (0.0.0.0) on port 9050
@magicstone1412
magicstone1412 / qbittorrent
Created November 17, 2024 10:00
OVM qbittorrent docker compose file
---
services:
---
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1001
- PGID=100
- TZ=${TZ}
@magicstone1412
magicstone1412 / rclone-mount-yandex
Created November 18, 2024 14:44
Mount Yandex disk using rclone docker compose
---
services:
rclone-mount:
image: rclone/rclone:latest
container_name: rclone-mount
restart: unless-stopped
environment:
- RCLONE_CONFIG=/config/.rclone.conf
- PUID=1001
- PGID=100
@magicstone1412
magicstone1412 / borg_backup.sh
Created December 12, 2024 23:03
Borg Backup Script
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Variables (Customize these)
BACKUP_REPO="/path/to/backup/repo" # Borg repository location
BACKUP_SOURCE="/path/to/backup/source" # Directory to back up
PASSPHRASE="your-borg-passphrase" # Borg passphrase (avoid exposing in scripts; use environment variables instead)
BACKUP_LOG="/var/log/borg_backup.log" # Log file location