Last active
August 31, 2023 05:26
-
-
Save dieseltravis/7d7abfa2e71b54926f36f9acbaac80e6 to your computer and use it in GitHub Desktop.
script that gets latest from hodgesmr/mastodon_digest, generates a digest, and opens it in firefox
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 -euo pipefail | |
INFO='\e[38;05;14m' | |
NC='\033[0m' # No Color | |
# https://github.com/hodgesmr/mastodon_digest | |
cd ~/Projects/github/mastodon_digest/ | |
echo -e "${INFO}๐ getting latest...${NC}"; | |
git fetch && git pull | |
echo -e "${INFO}generating content index...${NC}"; | |
python run.py -f home -n 16 -s ExtendedSimpleWeighted -t lax | |
echo -e "${INFO}opening in firefox...${NC}"; | |
firefox ./render/index.html | |
cd - | |
echo -e "${INFO}done. ๐${NC}"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment