Skip to content

Instantly share code, notes, and snippets.

View hughrun's full-sized avatar

Hugh Rundle hughrun

View GitHub Profile
@hughrun
hughrun / murmuration-draft.md
Last active November 8, 2022 21:00
draft blog post on twitter migration

Murmuration: Mastodon's Eternal September has begun

Nobody goes there anymore. It’s too crowded. Yogi Berra, et al

Well, it looks like it's finally happened. As news sites began reporting that Elon Musk had finalised his purchase of Twitter, the fediverse's Eternal September — hoped for and feared in equal numbers amongst its existing user base — began.

We've had waves of new people before — most recently earlier this year when Musk first announced his purchase offer — but what's been happening for the last week is different in both scale and nature. It's clear that a sizeable portion of Twitter's users are choosing to deplatform themselves en masse, and many have been directed to Mastodon, the most famous and populated software on the fediverse.

Two kinds of party

@hughrun
hughrun / crontab
Created July 29, 2022 23:02
crontab for pruning unused media from mastodon servers
# This should be set in the `mastodon` user's crontab, not `root`, otherwise ruby/rails may not work correctly.
# Make sure your environment settings are correct
# You need to set PATH because otherwise cron uses root's PATH
RAILS_ENV=production
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/mastodon/.rbenv/shims
# This should remove media files cached from remote servers older than 7 days
@daily cd /home/mastodon/live && bin/tootctl media remove --days=7