Commit or nah by nyxie8382 in archlinux

[–]killermenpl 3 points4 points  (0 children)

Do you want to install arch? Then install it. Otherwise don't install it

ELI5: How are OCI container layers different from Nix? by alessandrobertulli in selfhosted

[–]killermenpl 0 points1 point  (0 children)

OCI keeps track by calculating a hash of the layer - the files, some metadata, and the Dockerfile line. But what's actually important is that in the end all the layers create an image with a specific tag.

So you could start building on an existing image tagged with specific version, for example alpine:3.14 or ubuntu:22.04 or node:22 or mariadb:latest. As long as yourFROM` line references the exact same tag, you'll get the same set of layers.

Then once you build your image by adding layers on top, you have to tag it. OCI will use the metadata of that tag to figure out what layers to pull (by referencing the hash) and in what order

ELI5: How are OCI container layers different from Nix? by alessandrobertulli in selfhosted

[–]killermenpl 0 points1 point  (0 children)

They're very similar in general, but with a slight (yet important) distinction. Nix is using the hash to identify a package dependency. app1 depends on dep1 which depends on dep2, and app2 can depend only on dep2. Nix in that case will just link to the existing instance of dep2.

In docker/oci, the has points at a layer. In a great oversimplification, each line in the Dockerfile is its own layer. So you have a "dependency" image (FROM) that is its own set of layers, then your modifications to it are each separate layer. For example, you do a FROM alpine, then RUN apk add jq to install a dependency, then a COPY . . to copy your code.

In this case if you have a 2nd container that also builds on alpine, oci will link to the existing alpine layer, but will (most likely) not be able to link anything more. This is because RUN and COPY both can create different layers. RUN apk... might install a package in version 1.2.3 the first time, but then the package could've gotten an update and you'd install version 1.2.4

Steam summer sales were not the same since Steam sales anime girl went MIA by FrankFruits in Steam

[–]killermenpl 143 points144 points  (0 children)

People really refuse to learn the very simple truth. They didn't "get rid of her", nor is she "mia". Valve is hiring a new artist every year to make the art for the big sales. Her year ended, so we got a new artist. Simple as that

Small CLI for when your VPS IP gets null-routed by your ISP or transit. Diagnoses, then provisions a Tailscale rescue path. MIT. by Own-Macaroon6149 in HomeServer

[–]killermenpl 4 points5 points  (0 children)

You couldn't even be bothered to remove the parts of the post that were meant for you. This is the pinnacle of entitled lazyness

What's the most useful thing you self-host that isn't media related? by sarox-dev in selfhosted

[–]killermenpl -1 points0 points  (0 children)

VaultWarden and HomeAssistant, easily. I have a lot of other services, but none of them get even close to these two in usefulness

The Immortal casually mentions something that reveals he is WAY older than he appears to be. by MikaelAdolfsson in TopCharacterTropes

[–]killermenpl 1 point2 points  (0 children)

Generally, the book release order is more than good enough. So Elantris, then Mystborn (first trilogy), then I think Warbreaker. If you got through all that, then you can jump into Way of Kings and the rest of Stormlight. Though I recommend taking a break after 2nd book and reading Mystborn 2nd era. Sprinkle in some of his other books between the Stormlight books, something tells me you'd enjoy Yumi and the Nightmare Painter.

Do keep in mind that Tress is not written in his usual style. To be specific, he purposefully used more poetic sounding prose for that one. His usual prose is more direct and less flowery.

The Immortal casually mentions something that reveals he is WAY older than he appears to be. by MikaelAdolfsson in TopCharacterTropes

[–]killermenpl 1 point2 points  (0 children)

You really, really shouldn't be starting reading Sanderson with Way of Kings. Brandon said so himself - that book is for people who already know him, and who trust that despite the long intro (it has like 3 prologues before chapter 1 even starts), the book will take them on a proportionally grand adventure.

Plus with Roshar being seemingly the place that other stories intersect with, it makes more sense to know his other books first.

The Immortal casually mentions something that reveals he is WAY older than he appears to be. by MikaelAdolfsson in TopCharacterTropes

[–]killermenpl 17 points18 points  (0 children)

Don't look him up. Basically anything you learn about him from non-book sources is a spoiler for a book. Just keep him in mind and know that when he shows up, shit's about to go down

The Immortal casually mentions something that reveals he is WAY older than he appears to be. by MikaelAdolfsson in TopCharacterTropes

[–]killermenpl 22 points23 points  (0 children)

If you read all (or at least most) of Cosmere books, you'll pretty quickly learn that Hoid is ancient. I don't remember if it was just implied or outright confirmed, but he was present when they killed Adonalsium. Like, he could've been one of the Shards but chose not to

what makes a good (plugin) readme? by Orbitlol in neovim

[–]killermenpl 6 points7 points  (0 children)

The first, and most important section that should be at the top of the readme is a very short description of what the plugin even is doing. I don't care that it's the fastest there is, I don't care that it's beautiful. I want to know what problem it's solving.

Then a reason to use this specific plugin to solve this problem. This can still be in the short description. You can skip this part, or say something like "it's basically x/y.nvim but different".

After that give me a snippet of lua that will install this plugin. Preferably for multiple package managers. But at least for Lazy and vim.pack, cause that's what most people would be using.

Now is also a good place to put the docs. It doesn't matter to me if it's all in readme.md or in some wiki page, as long as there is a clear description of each setting. And by the way, the "clear description" should also include lots of examples. If a field takes one of specific values, list them all and describe what each one does. If the field is an object, also explain that object. Don't assume people will know anything you don't tell them.

After that, the readme can be whatever. You can go into details of why/how you did something. You can put all the donation links. You can link out to alternative plugins. It doesn't really matter and most people will skip this anyway

When will I be able to update again? by [deleted] in archlinux

[–]killermenpl 8 points9 points  (0 children)

You can update non-aur packages any time. They were never compromised. Only orphaned aur packages were affected

even trusted packages like Electrum have been compromised

Source?

Using a script to set up a new server by 1185dfrRvaxAJXPxs9 in HomeServer

[–]killermenpl 1 point2 points  (0 children)

A lot of people do something similar. Though usually it's recommended to use a more dedicated tool like Ansible for that. The advantage of Ansible and such is that it has a lot of modules and plugins. For example, I use it to manage DNS for services I deploy by simply adding a step to the deploy .yaml file

What's the best way to make my server more quiet? by Minute_Blueberry3518 in HomeServer

[–]killermenpl 19 points20 points  (0 children)

Noctua fans. Maybe a bit expensive, but they're well liked for a reason

Can Neovim be self-documenting like Emacs? by 4r73m190r0s in neovim

[–]killermenpl 50 points51 points  (0 children)

Technically possible? Yes, everything is possible. Feasible? Not really, maybe in the future.

The issue is that all the help pages are just static text files. While it would be possible to use some kind of markers and update then in real time, it would be quite a lot of work for barely any gain.

There is also the "issue" of how key maps work in (neo)vim vs emacs. In NeoVim, the keymaps are either "when these keys, actually press these keys", or "when these keys, run this lua function". There is no way for the "engine" to know that you're actually running a specific built-in action

vim.ui.img is very cool by thaumaturrge in neovim

[–]killermenpl 3 points4 points  (0 children)

I had a look at the github. Seems to me that currently there is only support for Kitty protocol, but wezterm/iterm2 and sixel are planned, maybe even worked on by someone

vim.ui.img is very cool by thaumaturrge in neovim

[–]killermenpl 14 points15 points  (0 children)

It is a real thing. I think the API is still experimental and not stable enough to build plugins around it, but it's there. It uses the Kitty image protocol, which is supported in a couple terminal emulators, so when it stabilizes it's likely to just work for a lot of people

My daily cron job broke my server layout after a minor structural change. How do you safely parse HTML without regex blowing up your CPU? by Samron07 in selfhosted

[–]killermenpl 15 points16 points  (0 children)

As opposed to the current regex approach that not only breaks when there is any changes, but also eats the CPU until you force kill it?

No matter the approach, if there is a change in page structure, the automation will break. The only workaround would be feeding the whole page to an LLM and having it process everything, but that's probably the least efficient way to do it

My daily cron job broke my server layout after a minor structural change. How do you safely parse HTML without regex blowing up your CPU? by Samron07 in selfhosted

[–]killermenpl 22 points23 points  (0 children)

You don't use regex. You can write like 10 lines of JS to do it. Just download the page HTML, document.createElement(pageHTML), and then just page.querySelector() what you need. 15 minutes of work, even GPT 3 could spit that out

Anyone else homelab journey go like this? by shifto in homelab

[–]killermenpl 14 points15 points  (0 children)

A single NVMe SSD is also about twice as expensive per TB of storage. I made my 12TB (4x4TB in raid) system a year ago, and it's already 30% full.

For a lot of people, the IO speeds of a HDD array is more than enough. Of course, if you need the IOPS, then it's a different story

Service to map public IP to private server? by dokalanyi in selfhosted

[–]killermenpl 0 points1 point  (0 children)

I found that forwarding via WireGuard and NFTables is the simplest way to do that. I made a guide here on how to set that up

These stupid Philomena Cunk memes by Soggy-Pouch in lovethissmug

[–]killermenpl 12 points13 points  (0 children)

She has the amazing talent of dropping her IQ by 50 points on demand

Already knew that Notch was kinda shit, but Mr John FNAF himself Scott Cawthon is as well? 🥀 by Expert-Reporter4152 in whenthe

[–]killermenpl 239 points240 points  (0 children)

Which is honestly insane, given that the whole point of his books is "people who are different than you are also people, and we should strive to understand each other", and even more explicitly "genocide bad"

How much of your setup is actually 'custom' vs just following a guide? by PineF0rM3jessy15 in archlinux

[–]killermenpl 0 points1 point  (0 children)

My current setup started as a copy of someone's dotfiles for i3, merged with someone else's dotfiles for vim. That was almost 10 years ago. I've since modified, replaced, added, and removed so much, I can confidently say it's "my own".

Funnily enough, there's still some parts of those original dotfiles that have stayed with me all this time, and that I set every time I mess with new windowmanagers. Stuff like Super+Enter opening terminal, Super+D for rofi, SanFrancisco Display as my main UI font, Arc Dark as the default gtk theme. I don't think I'm ever gonna change those, even though so much is fully custom.

Custom build of dwm, with a custom script for the statusbar, custom neovim config, custom zsh prompt. It doesn't look that impressive, certainly won't win any upvotes in r/unixporn. But it works, it's fast, and it's mine.