NOTE: All of the following commands should be run as root. The acme.sh
commands won't work with just sudo.
Install acme.sh:
$ curl https://get.acme.sh | sh -s email=<your-email>
#!/usr/bin/env zsh | |
i=0 | |
declare -a covers=() | |
mpc playlist -f '%file%' | # pull current mpd queue | |
while read song; do dirname $song; done | # get album directory for each song in the queue | |
awk '!x[$0]++' | # get unique album paths while retaining order | |
while read album; do | |
local cover=$(find "$MUSIC/library/$album" -name 'cover.*') # get name of cover file | |
local out="./$((i++)).${cover##*.}" # output name for resized cover |
# updates | |
# - the `t%$((frames+1))==0` in the ternary makes it so I can delay/show the album covers longer than the transition frames | |
# i.e., in this case, the album covers are shown for 15 frames and each transition step is shown for 4 frames | |
# manual steps to be automated | |
# - moved all album covers into this directory | |
# - converted album covers to 600x600 | |
frames=18 |
#!/usr/bin/python3 | |
""" | |
A minimal front end to the Docutils Publisher, producing LaTeX. | |
""" | |
try: | |
import locale | |
locale.setlocale(locale.LC_ALL, '') | |
except: |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
strs := make([]string, 2) |
I hereby claim:
To claim this, I am signing this object: