This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from xml.dom import minidom | |
from os import getenv, listdir | |
from os.path import exists,basename,normpath,splitext | |
import psycopg2,pathlib,datetime | |
from glob import glob | |
# directory where your playlists are | |
outDir = "/srv/funkwhale/data/music/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
readonly b="\033[1m" # bold text | |
readonly i="\033[3m" # italic text | |
readonly n="\033[0m" # normal text | |
readonly r="\033[0;31m" # red text | |
readonly u="\033[4m" # underlined text | |
readonly regexWidthSteps="×[1234567890¼½¾]+\.png$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
backupfrom="/srv/smb/" | |
blockdev=${1:-/dev/sdd1} | |
permunlock=$(pkaction|grep org.freedesktop.udisks2.encrypted-unlock) | |
permmount=$(pkaction|grep org.freedesktop.udisks2.filesystem-mount) | |
if [[ -z "$permunlock" ]] || [[ -z "$permmount" ]]; then | |
echo "enter disk password first, then login password twice" | |
echo "login password prompts can be eliminated via polkit" |