Skip to content

Instantly share code, notes, and snippets.

@dieseltravis
Last active August 31, 2023 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dieseltravis/7d7abfa2e71b54926f36f9acbaac80e6 to your computer and use it in GitHub Desktop.
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
#!/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