Skip to content

Instantly share code, notes, and snippets.

View leafhy's full-sized avatar

leafhy

View GitHub Profile
@leafhy
leafhy / snapraid-sync.sh
Last active May 1, 2021 04:52
SnapRAID Split Parity Sync Script
#!/bin/bash
# This script works with "Void Linux & Salix OS"
#
# Note:
# For "MANAGE_SERVICES=0" to work on Void/Salix double square brackets "[[ $MANAGE_SERVICES -eq 1 ]]" are required otherwise
# Void/Salix requires SERVICES='nzbget sonarr' to be commented out
#
# MAIL_BIN="/usr/sbin/sendmail" # Symbolic link to 'femtomail'
# $MAIL_BIN -s "$SUBJECT" "$EMAIL_ADDRESS" < $TMP_OUTPUT # remove "-s $SUBJECT" for 'femtomail'
#######################################################################
@leafhy
leafhy / config
Created September 22, 2020 17:42 — forked from olmokramer/config
Herbstluftwm workspaces for polybar
[module/herbstluftwm]
type = custom/script
exec-if = ps -C herbstluftwm >/dev/null 2>&1
exec = MONITOR=HDMI-0 ~/.config/polybar/herbstluftwm.sh
tail = true
@leafhy
leafhy / archive_podcast.py
Last active December 12, 2019 23:17 — forked from EnigmaCurry/archive_podcast.py
Basic podcast archiving script
"""Convert podcast feeds into an aria2 download script
- Setup feed output directories and URLS
- Run: python archive_podcast.py > aria2.txt
- Run: aria2c -i aria2.txt
Aria2 will download all the episodes and supports resuming of partial downloads
"""
import feedparser