lists

random scripts i've written

bash#

  • getlyr: type in an artist and the name of a song, and (hopefully) get the song’s lyrics
    • dependencies: awk, curl, gum, jq
  • nowplaying: print the last played OR currently playing track from your last.FM account. requires an API key and username.
    • dependencies: curl, gum, jq

php#

  • ask.php: quick script to work as an endpoint for caddy on demand TLS

perl#

  • list.pl: newline-separated list of values from a mySQL database. i used this with dreamwidth code
    • dependencies: DBI

python#

  • lastfm.py: same as nowplaying, but prints in plain text.