[-] trevor 46 points 3 days ago

Absolutely! Imperialism is bad when Russia does it, and when American/Israel does it.

[-] trevor 15 points 4 days ago

That's an interesting way of framing Russia ending the world in a nuclear holocaust because Ukraine didn't want to be a part of Russia's sphere of influence.

It would be best for everyone if Russia would stop the escalation, and I hope they do. If not, we have to find a better solution to imperialism than appeasement, because that doesn't work long-term either.

[-] trevor 2 points 4 days ago

That is a rad *fetch image 😎

[-] trevor 11 points 4 days ago

Hopefully Russia ceases their invasion soon then. They could have ended it any time they wanted, but for some reason, they insist on keeping their "three-day, special military operation" going.

I'm rooting for peace. Hopefully, Russia comes around.

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

Yeah. The far-right border bill that aided in the demonization of immigrants we're seeing today. The fact that so many democrats attached their name to it only served to launder the right's racist fear-mongering about immigrants.

Fuck that bill. It's bad policy and bad politics.

[-] trevor 7 points 4 days ago

Too bad Biden put forward a far-right border bill that laundered the right-wing narrative that there's a "border crisis" and that people are flooding in. Fast-forward a few months, and here we are.

The politicians that attached their names to that bill are in-part to blame for legitimizing the racist, anti-immigrant lies we're hearing today.

Dems need to grow a spine and meaningfully protect minority groups instead of naively aiding the right in demonizing them.

[-] trevor 5 points 5 days ago

Animals (human, and non-human alike) need nutrients to survive. They don't need those nutrients to have come from some other poor animal, and carnists that insist that is the case are engaging in anti-science magical thinking. We can do amazing things with science, including synthesizing almost anything you can imagine.

However, last I looked around for plant-based dog food, it was pretty heavy on lentils, which I've heard can cause heart enlargement in dogs. Have further studies been done on this, or, have plant-based dog foods that don't rely on lentils been made available?

[-] trevor 184 points 2 weeks 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.

[-] trevor 56 points 2 months ago

Is anyone else bothered (but not surprised) by the fact that Amazon/Twitch agreed to cover it up for him? Seems pretty wild that they should be off the hook for working to protect his image after doing predatory shit like this.

[-] trevor 97 points 3 months ago* (last edited 3 months ago)

Here's a neat tip:

You can go to most publisher or developer pages on Steam and "ignore" them to prevent Steam from ever showing you their slop again.

Example:

  1. Go to: https://store.steampowered.com/developer/Ubisoft
  2. Click the "Settings" cog.
  3. "Ignore this creator"

You can do the same with EA, 2K, etc. Don't even give these parasites microseconds of your time when they release their next slop title.

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

[-] trevor 86 points 11 months ago

Still more efficient on resource utilization than animal agriculture. If you hate almond milk for that reason, you should want the dairy industry completely abolished.

view more: next ›

trevor

joined 1 year ago