trevor

joined 1 year ago
[–] [email protected] 1 points 14 hours ago

Lmao. Good.

[–] [email protected] 1 points 4 days ago

I have the ZSA Moonlander and Voyager keyboards. I like them a lot.

I also have the Ploopy Adept and Nano mice that also run QMK.

I bought all of them preassembled. I'd love to know what other brands are out there that sell preassembled peripherals that can run open firmware.

[–] [email protected] 37 points 4 days ago (4 children)

Say "no" to Ubislop! You'll be happy you did :)

[–] [email protected] 2 points 4 days ago (1 children)

+1 for Ploopy mice. I have the Ploopy Adept, and I'll never go back to another mouse. They mostly make trackballs, but they do have a "regular" mouse if trackballs aren't your thing.

The biggest problem with Ploopy is that they only seem to make mice for people with bigger hands, so if that's not you, you're kind of screwed :/

[–] [email protected] 1 points 4 days ago (3 children)

Seriously. I'm really into keyboards with QMK, but I buy prebuilt keyboards and mice that are capable of running it because if using QMK required me to solder something, I wouldn't be able to. Soldering is a skill that most people don't have.

[–] [email protected] 10 points 5 days ago (1 children)

And, even though Big Tobacco was obviously lying, they sewed enough doubt to keep the topic as an issue of debate for decades after we knew it was dangerous.

Zuck is likely doing the same because it works.

[–] [email protected] 7 points 6 days ago

Frutiger Aero, my beloved 🤩

[–] [email protected] 5 points 6 days ago* (last edited 6 days ago)

Dana Fash and Snake Tapper should be fired for lying about this shit. It's easily verifiable and they certainly knew it was a lie given that they never bothered to contact Tlaib for response (what real journalists do).

But CNN is a right-wing rag and racism is encouraged as long as it's toward Palestinians.

[–] [email protected] 63 points 1 week ago (9 children)

Nobody look at how much water (and exploitation) that animal agriculture requires 🫣

[–] [email protected] 25 points 1 week ago

That has nothing to do with what's happening. Twitter can't be fucked to appoint a legal team to comply with Brazilian law, so they don't get to operate there. Simple as.

[–] [email protected] 47 points 2 weeks ago (5 children)

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

9
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

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 ›