I have already made an “oars” folder in the bin folder and looking for a way to automate this process as I have 16 regions. The region names are CaPs SeNsItIvE.
Again a quick not for myself and putting a copy here in case something internets goes poof; https://docs.joinmastodon.org/admin/tootctl/#media
tootctl media remove
Removes locally cached copies of media attachments, avatars or profile headers from other servers. By default, only media attachments are removed.
--days N
How old media attachments have to be before they are removed. In case of avatars and headers, how old the last webfinger request and update to the user has to be before they are removed. Defaults to 7.
--concurrency N
The number of workers to use for this task. Defaults to N=5.
--prune-profiles
Instead of media attachments, remove locally cached copies of avatars and headers from other servers. Cannot be combined with --remove-headers.
--remove-headers
Instead of media attachments, remove locally cached copies of headers from other servers. Cannot be combined with --prune-profiles.
--include-follows
Override the default behavior of --prune-profiles and --remove-headers to remove locally cached copies of avatars (and headers) from other servers, irrespective of follow status (by default, they are only removed from accounts that are not followed by or following anyone locally). Can only be used with --prune-profiles or --remove-headers.
--verbose
Print additional information while task is processing.
--dry-run
Print expected results only, without performing any actions.
tootctl media remove-orphans
Scans for files that do not belong to existing media attachments, and remove them. Please mind that some storage providers charge for the necessary API requests to list objects. Also, this operation requires iterating over every single file individually, so it will be slow.
--start-after
The Paperclip attachment key where the loop will start. Use this option if the command was interrupted before.
--dry-run
Print expected results only, without performing any actions.
--prefix
Traverse only a specific prefix of files in the system.
--fix-permissions
Sets S3 ACL to be default according to environment variables.
tootctl media refresh
Refetch remote media attachments from other servers. You must specify the source of media attachments with either --status, --account, --domain, or --days. If an attachment already exists in the database, it will not be overwritten unless you use --force.
--account ACCT
String username@domain handle of the account
--domain DOMAIN
FQDN string
--status ID
Local numeric ID of the status in the database.
--days N
The number of days to limit this task to.
--concurrency N
The number of workers to use for this task. Defaults to 5.
--verbose
Print additional information while task is processing.
--dry-run
Print expected results only, without performing any actions.
--force
Force redownload the remote resource and overwrite the local attachment.
tootctl media usage
Calculate disk space consumed by Mastodon.
tootctl media lookup
Prompts for a media URL, then looks up the status where the media is displayed.
And by Local Network, I mean here on my workstation, not at the peer or VPN docker/server/provider.
I am not very knowledgeable with VPNs but I got to learn something new and when I do, I make a note of it. The problem was that when I have my VPN active to poke things at home, I could not print documents at my workstation at work.
Googled a lot, trid a few things and then realised that adding IP addresses to AllowedIPs in the PEER section, adds an exception for an IP address on the server’s side, NOT my workstation.
“Ooooh, what does this checkmark do?”
Confusingly enough, WireGuard names things differently between the Windows and the iOS app. So here’s what you need to check to gain access to your workstation’s local network:
Open the WireGuard control panel.
Click once on the vpn you want to change
Click the EDIT button on the bottom right
iOS: UN-Tick the box on the bottom left that says: “Exclude private IPs”, then click SAVE
Windows: UN-Tick the box on the bottom left that says: “Block untunneled traffic (kill-switch)”, then click SAVE
Yes ,this poses a security risc, so I made two VPN profiles. One with and one without so I can easily switch from one to the other.
I found a printout of a website that of course does not exist any more unfortunately. Luckily, there is archive.org. #send_them_money
So, here’s some oven temperature conversion data. It covers conversion from Celcius to Silly and if your oven is old and has only settings, then I have a list for that as well.
myusername = the username you want to give access to the database
mypassword = the password you want to assign to the user
sudo -u postgres psql
create database mydb;
create user myusername with encrypted password 'mypassword';
grant all privileges on database mydb to myusername;
I usually do not fear updates, but when it comes to databases, I am getting really careful with updating them. It wouldn’t be the first time when a database goes plonk after this.
So what happened? My MySQL docker got updated becuase I simply misclicked and of course, the thing broke. The update script, which was set to “latest”, performed an upgrade to 9.x instead of sticking to the latest 8.x version.
After some research, I read that one can enter “mysql:8.2.0” in the repository field. After entering this and starting the docker, the software got reinstalled with the proper version and everything worked again. I must’ve been lucky that the database itself was not migrated to v9 already, I guess.
I found in my notes from 2017 a method to fix the header of a M4A file. Appartently I needed this back then to repair a file, and then forgot about the note. So here ya go:
ffmpeg -f aac -analyzeduration 100M -probesize 100M -i broken.m4a -c copy fixed.m4a