[-] trevor 3 points 6 hours ago

Anyone have a non-imgur link?

They block VPNs ๐Ÿ™„

[-] trevor 1 points 6 hours ago

That's fine. I'm sure there are some sub-par TUIs out there. I've seen pretty great TUIs, especially the ones written in Rust (because of the excellent TUI lib they have).

GUIs are fine too (as long as they don't use Electron lol).

[-] trevor 1 points 1 day ago

It's just an easy thing to contrast against.

Electron is one of the slowest, clunky, memory-hogging ways to have a UI, and TUIs are the exact opposite. I don't care if (name of company that ships Electron slop here) can ship your ~~software~~ webpage masquerading as software to more systems more easily. If your messaging "app" has input lag when I type something, it's a dogshit experience.

Of course, there are ways to ship GUIs that aren't all of the things wrong with Electron, but comparing TUIs with those is less interesting and more a question of if the person likes to live in their terminal or not.

[-] trevor 7 points 2 days ago

This kind of thing is an excellent way to bamboozle people into handing authority figures your phone, which is one of the worst things you can do.

[-] trevor 3 points 2 days ago

As someone that has never used Puppet, I also wonder this. Ansible is agentless and works on basically anything. What do you gain by requiring an agent, like with this?

[-] trevor 37 points 3 days ago

Why??? TUIs are the best kind of UI. They run anywhere and don't siphon your system resources like garbage Electron apps.

[-] trevor 19 points 3 days ago

I would like to voice my support for the "no authoritarian" rule. Just because liberals use the term "tankie" to wrongly describe non-auth leftists, doesnt mean the word isn't clearly defined or that it shouldnt be used.

If you're auth-"left" or find yourself doing apologia for the few genocides and instances of human rights voilations that the west opposes, you're a tankie. It's safe to say that genocide apologia and human rights violations of any kind should have no place on 196.

[-] trevor 3 points 4 days ago* (last edited 4 days ago)

Death Howl rule.

[-] trevor 1 points 5 days ago

Lol. The thumbnail doesnt even render for me. My bad.

[-] trevor 5 points 5 days ago

What are you referring to? I don't think these changes have anything to do with AI.

The closest thing in the article I found in the article was a mention of LLVM, which is a totally different thing from LLMs, if that's what you're thinking.

[-] trevor 12 points 6 days ago

Bigotry is why, yeah. blahaj.zone has been nothing but a nice instance. lemmy.world on the other hand... ๐Ÿ™„

[-] trevor 47 points 6 days ago* (last edited 6 days ago)

Fuck this. I'll be blocking the ~~new~~ fake 196 then.

10
submitted 11 months ago* (last edited 11 months ago) by trevor to c/docker@programming.dev

I am looking for something that can take a Dockerfile, like the following as an input:


FROM --platform=linux/amd64 debian:latest
ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y curl unzip libsecret-1-0 jq
COPY entrypoint.sh .
ENTRYPOINT [ "/entrypoint.sh" ]

And produce a a multi-stage Dockerfile where the last stage is built from scratch, with the dependencies for the script in the ENTRYPOINT (or CMD) copied over, like this:


FROM --platform=linux/amd64 debian:latest as builder
ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y curl unzip libsecret-1-0 jq

FROM --platform=linux/amd64 scratch as app
SHELL ["/bin/bash"]

# the binaries executed in entrypoint.sh
COPY --from=builder /bin/bash /bin/bash
COPY --from=builder /usr/bin/curl /usr/bin/curl
COPY --from=builder /usr/bin/jq /usr/bin/jq
COPY --from=builder /usr/bin/sleep /usr/bin/sleep

# shared libraries of the binaries
COPY --from=builder /lib/x86_64-linux-gnu/libjq.so.1 /lib/x86_64-linux-gnu/libjq.so.1
COPY --from=builder /lib/x86_64-linux-gnu/libcurl.so.4 /lib/x86_64-linux-gnu/libcurl.so.4
COPY --from=builder /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1
# ...a bunch of other shared libs...

# entrypoint
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT [ "/entrypoint.sh" ]

I've had pretty decent success creating images like this manually (using ldd to find the dependencies) based on this blog. To my knowledge, there's nothing out there that automates producing an image built from scratch, specifically. If something like this doesn't exist, I'm willing to build it myself.

view more: next โ€บ

trevor

joined 2 years ago