trevor

joined 1 year ago
[–] [email protected] 6 points 1 day ago

Yeah. They said this about the first (or second) one too. I like the movies, but this is just a gimmick.

[–] [email protected] 18 points 2 days ago

I started disabling JavaScript by default with uBlock Origin a few months ago. I am surprised to report that a bunch of sites work fine without JavaScript.

There are definitely some sites that actually need it, and for those, it's just one click to permanently allow for that site. But most of the sites I need work better with just CSS and HTML because there are no stupid nags or social media sign-in buttons that pop-up anymore.

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

Lmao. Good.

[–] [email protected] 1 points 1 week 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 1 week ago (4 children)

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

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

Woah... For some reason, I didn't even think a machine like that would exists. I always figured it's a highly manual process.

Would you mind sharing what you have?

[–] [email protected] 2 points 1 week 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 1 week 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] 11 points 1 week 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 1 week ago

Frutiger Aero, my beloved 🤩

[–] [email protected] 5 points 1 week ago* (last edited 1 week 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.

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