Aaron W. Swenson

@TitanOfOld
16 Followers
17 Following
175 Posts

TIL Emacs has code folding built in (of course it has!). Enable it with `hs-minor-mode` and toggle function, class or comment folding/unfolding with `hs-cycle`. There are many other commands to try too: `hs-hide-all`, `hd-show-all` and so on.

#emacs #coding

@april made Laboratoy (https://github.com/april/laboratory) a fantastic extension for #Firefox that helps me quickly find and set Content-Security-Policy for my site.

My #Fossil repo wasn't showing the +/- images for some accordion sections. April's Laboratory pointed out that adding "data:" to the img-src CSP will help.

And it did.

GitHub - april/laboratory: Because good website security shouldn't only be available to mad scientists!

Because good website security shouldn't only be available to mad scientists! - april/laboratory

GitHub

The #USA appears to be bombing #Caracas #Venezuela

Why?

So people stop talking about #Epstein?

"Drugs" they say but #Trump just pardoned the ex-President of Honduras for drug offenses

It's so fucking stupid

People didn't vote in 2024 because "BoTh SiDeS tHe SaMe"

🤦

Can we please show up in 2026 in the primaries and the general election and shut this stupid shit down?

*Please*

You're not going to get perfect. The Democrats suck

But now look. Look at why we vote anyways, toxic idealists:

Today I went on a walk and the moon looked beautiful.

I also learned about M-x lunar-phases in #emacs

Good one.

(ノ-_-)ノ ミ ┴┴

I just spent a week trying to figure out why #monit wasn't getting started by the init, but would run just fine from the command line.

The only hint I had was:
Dec 29 09:55:56 [init] Error detected in /etc/inittab at line 66. Possibly too long.

The inittab suddenly needed a final empty line. A line 67 with nothing in it.

ヾ(。◣∀◢。)ノ

#linux #gentoo

If you're like me and have a lot of databases in #postgresql, this might come in handy for some of you when there's a collation refresh needed:

for db in $(psql -q -t -l postgres postgres 2> /dev/null | cut -d "|" -f 1 | sed '/^[[:space:]]*$/d') ; do psql postgres postgres -c "ALTER DATABASE ${db} REFRESH COLLATION VERSION"; done

This gets the list of databases, then iterates refreshing the collation. It keeps me from having to manually switch between 20+ DBs.

Anything else I should do?

I'm wishing to bring tidings of comfort and joy with this new video.

Or at least comfort and slightly reduced stress levels!

https://www.youtube.com/watch?v=tCVsyY5TRQI

I made my whole-home humidifier slightly less terrifying

YouTube
pgEdge

Fully distributed PostgreSQL