mckinley

twtxt.net

A guy on the internet. https://mckinley.cc/

Recent twts from mckinley
In-reply-to » @prologic I've thought about that, but it seems awfully inefficient to host a full code forge with a Web interface just to mirror some Git repositories.

How does Gitea store repositories? Are they just bare Git repositories on the filesystem that can be cloned separately? Also, how does it handle the upstream force-pushing an empty repository? Will that destroy your archive?

⤋ Read More

QOTD: Do you keep a personal archive of Git repositories? If so, how? My backup system is a poorly written, inefficient shell script that I run manually when I think about it and I’d like to do something about that. The Yuzu and Citra emulators were taken down recently and I have a ~3 day old backup of Yuzu’s repository but nothing for Citra.

⤋ Read More
In-reply-to » Yesterday we made a decision to ban and block Youtube at the network level. Why? Because it's become too addictive and threatening th mental well being of the family.

@prologic@twtxt.net So, you’re automatically downloading videos by a select few YouTube channels and putting them into Plex? Interesting. When do you think your kids will figure out how to get around your block? :)

⤋ Read More
In-reply-to » yarn should define its own federation protocol that extends the basic twtxt in ways that twtxt doesn't allow. it's time. and i've got ideas!

I agree with @sorenpeter@darch.dk. WebFinger and WebMentions are very much in the spirit of Twtxt and both of them are already in use. If we’re going to do much more than that, we should probably just use Nostr instead.

⤋ Read More
In-reply-to » @lyse gron does something very similar with JSON. I used to use it more, but these days I just reach for jq instead.

@lyse@lyse.isobeef.org The thing that really unlocked jq for me was learning how to get a TSV output. That was a complete game changer, because it meant I could easily use it in a shell pipeline. I found it to be better than gron for that purpose. Just make an array for each item containing all the values you need and pipe it to the filter @tsv.

$ # Search YouTube using the Invidious API for "never gonna give you up" and write the results to out.json
$ curl -sGL -A 'Mozilla/5.0 (Linux; x86_64) Ladybird/1.0' -o out.json --data-urlencode 'q=never gonna give you up' 'https://farside.link/invidious/api/v1/search' 
$ jq -r '.[] | select(.type == "video") | [ .title, .author, .authorVerified, .videoId ] | @tsv' out.json
Rick Astley - Never Gonna Give You Up (Official Music Video)	Rick Astley	true	dQw4w9WgXcQ
Rick Astley - Never Gonna Give You Up [Lyrics]	GlyphoricVibes	true	QdezFxHfatw
InsurAAAnce & Rick Astley Never Gonna Give You Up	CSAA Insurance Group, a AAA Insurer	true	GtL1huin9EE
[...]

⤋ Read More
In-reply-to » @lyse Regarding YAML's readability, I miss the - for list items constantly when reading YAML files. I'll get confused because I think I'm not in a list or I'm in the previous list item, then I have to go back. List items are all on the same indentation column and one tiny character is the only thing defining a new one. I don't know if others have this problem.

@lyse@lyse.isobeef.org Blank lines help a lot.

⤋ Read More
In-reply-to » @xuu Cool! I particularly like the idea of converting it into a grep-able version, that's very neat. Interesting choice of aligning the colons at the values and not the keys, I think I never came across this.

@lyse@lyse.isobeef.org gron does something very similar with JSON. I used to use it more, but these days I just reach for jq instead.

⤋ Read More
In-reply-to » Question of the day: What configuration file formats do you all like and use?

@lyse@lyse.isobeef.org Regarding YAML’s readability, I miss the - for list items constantly when reading YAML files. I’ll get confused because I think I’m not in a list or I’m in the previous list item, then I have to go back. List items are all on the same indentation column and one tiny character is the only thing defining a new one. I don’t know if others have this problem.

⤋ Read More
In-reply-to » @lyse Lack of comments are definitely a shortcoming of JSON. I don't like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.

I spent hours creating a perfect Prosody config for my most recent XMPP server attempt (about 2-3 years ago now) and I lost that file because I deleted the VPS. That was the only important file on there and I just didn’t think of it when I deleted it. I didn’t have a single backup, not even an old copy I scped back to my PC for editing.

I hope I won’t make that mistake again but I wouldn’t be surprised if I did.

⤋ Read More
In-reply-to » Question of the day: What configuration file formats do you all like and use?

@lyse@lyse.isobeef.org Lack of comments are definitely a shortcoming of JSON. I don’t like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.

The Prosody XMPP server’s configuration file is just a Lua script because Prosody is written in Lua, and that’s excellent.

⤋ Read More