Skip to content

Instantly share code, notes, and snippets.

@PhrozenByte
PhrozenByte / # borg-unattended.md
Last active January 12, 2020 17:45
Shell scripts to run Borg backups unattended

borg-unattended

Shell scripts to run Borg backups unattended.

Install

# backup script
@lucaspg96
lucaspg96 / bot.py
Last active August 18, 2025 11:32
A python script to send messages to a telegram user. Useful to notify when long scripts are finished!
#This script is independet of lib or python version (tested on python 2.7 and 3.5)
import telegram
#token that can be generated talking with @BotFather on telegram
my_token = ''
def send(msg, chat_id, token=my_token):
"""
Send a mensage to a telegram user specified on chatId
chat_id must be a number!
@werkkrew
werkkrew / beets-process.sh
Last active October 7, 2020 00:58
Process with Beets
#!/bin/bash
#### Media file processing script for Beets
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes music files in some locations.
#
# Uses the already defined beets configuration for the user this script runs as.
command -v beet >/dev/null 2>&1 || { echo >&2 "I require beets but it's not installed or in my $PATH. Aborting."; exit 1; }