Usage for testing:
./get_latest_jsons.sh
./show_human_readable_timestamps.sh
If - for example - that showed that the latest JSON was 1691258704964.json:
./tcbot.sh TEST 1691258704964 0

This will show Community subscriber growth between the latest update and what happens to be currently be in the TEST folder (1691042690884.txt, from 2023-08-03), and then the data from “1691258704964” would become the new base, for the next update to compare its data to.

The REAL mode is what updates !trendingcommunities@feddit.nl

Requires bash, curl, bc, and jq. Don’t think anything is particularly version-dependent, though.

Comments are welcome. I’m not too fussed about efficiency, as the bulk of it only runs once a day, but any suggestions for improvement are welcome.

No comments yet!

Linux Troubleshooting and scripts

!linuxscripts@lemmy.zip

Create post

this is a community for sharing your scripts that help when working with Linux as well a general troubleshooting.

Rules

  • Absolutely NO NSFW posts. break this rule and you will be removed from this community. NO EXCEPTIONS!

  • Only post scripts that help yourself and others. All scripts will be tested on my machine personally, any malicious scripts will be removed immediately.

  • This community is for the benefit of other Linux users. no bigotry, hate, nudes, malicious scripts or politics allowed.

Feel free to ask any kind of support questions, as we grow more succinct answers will be available. Let’s make this community grow.

We are important to one another, not only in the linux world but also in the fediverse as a whole. Feel free to reach out to me with questions or concerns, as we grow bigger I will look into adding mods. (This section will be updated as needed.)

Community stats

  • 2

    Monthly active users

  • 16

    Posts

  • 9

    Comments

Community moderators