[-] trevor 29 points 11 hours ago* (last edited 11 hours ago)

"Banned" used to mean "you're done". Now every little time-out is a "ban". Can we use words correctly instead of lying for clicks?

[-] trevor 41 points 22 hours ago* (last edited 22 hours ago)

Shouldn't we also have the opposite list; a sort of name and shame or if you use these banks, you're screwed list?

In part, because it can be more conclusive to take a bank that has consciously made the decision to block access, rather than having a list of banks that maybe just haven't gotten around to it yet.

[-] trevor 20 points 1 day ago

Under heavy load. If you saturate any CPU and GPU, you're going to have it heat up quickly, and depending on your cooling profile, your fans will ramp up.

What the noise actually says is that the fans make noise, and the laptop body doesn't do much to dull the noise.

[-] trevor 6 points 1 day ago

I had a pretty good time rewriting various coreutils in Rust. I liked it because the difficulty of doing so ranges from something as easy as the true command, where you simply exit with a success status, to more challenging stuff like writing a basic shell.

Granted, it's not that complicated to write CLIs with simple inputs and outputs, so maybe it's not valuable for others but it certainly helped me understand Rust better than before.

[-] trevor 20 points 1 day ago

There's plenty of cooling capability. This thing has two fans that can get to sounding like a jet engine if it gets that hot. And it's ventilated enough that it actually cools it down.

If anything, it's loud as hell under heavy load, but cooling isn't a problem either.

[-] trevor 3 points 2 days ago

Flood it with nonsense questions asked by shitty synthesized voices from the 90's.

[-] trevor 12 points 3 days ago

Another preventable zoonotic plague thanks to animal exploitation. This will continue being the new "normal" as long as we keep making this choice.

[-] trevor 29 points 3 days ago

I've been running fish from the development branch for about a year, and I'm happy to say that nothing about it feels like it's beta. It's rock-solid (IMO) and my favorite shell 🐟

[-] trevor 6 points 3 days ago

Thanks, carnists, for yet again, another entirely preventable zoonotic plague!

Can't wait for more human animals to suffer and die just so you can have your stupid fucking rape juice 🙄

[-] trevor 47 points 5 days ago

Can you just fucking render the graphics as they were made?

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

I think that's right too, but just adding that I'm pretty sure using the m.2 expansion is mutually exclusive with using the dGPU.

Perhaps that's obvious, but I had to go digging in their installation docs to see if they managed to find a way to make both work somehow.

Still, this is really cool.

[-] trevor 185 points 3 months ago

Lula is so fucking great. He's literally just backing up the courts that are applying the law fairly and as-written, which is more than I can say for most leaders.

10
submitted 10 months ago* (last edited 10 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