💾 Archived View for midnight.pub › replies › 2346 captured on 2024-03-21 at 16:04:29. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

< Another Door

~she12

One more thing:

If you somehow manage to screw up your theme to the point where the whole pub won't load correctly, including the forms necessary to (re)set said theme (yes, you've guessed it: I am speaking from experience:), here's an easy way back:

curl -b midn="$(cat ~/.config/.midnight)"\
	 -F theme=""\
	 https://midnight.pub/theme/update

Of course you'll need a valid session token in "~/.config/.midnight", if you don't have that, just login via curl and store the cookie:

curl -c ~/.config/.midnight\
	 -F name=<your nick>\
	 -F "password=<your password>"\
	 https://midnight.pub/check-login

To use that cookie the way it was intended by m15o you'll have to strip it down so the file "~/.config/.midnight" only contains the token/base64 string or modify the curl command, to reset the theme:

curl -b ~/.config/.midnight"\
	 -F theme=""\
	 https://midnight.pub/theme/update

More information on this topic can be found here:

man midnight.sh

Write a reply