Max_P

joined 2 years ago
[–] Max_P@lemmy.max-p.me 2 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

They're just examples of things you could pipe curl into, but no not really. If the download fails you end up with an incomplete file in your tmpfs anyway, and have to retry. Another use I have is curl | mysql to restore a database backup.

If the server supports resuming, I guess that can be better than the pipe, but that still needs temporary disk space, and downloads rarely fail. You can't corrupt downloads over HTTPS either as the encryption layer would notice it and kill the connection, so it's safe to assume if it downloaded in full, it's correct.

With downloads being IO bound these days, it's nice to not have to read it all back and write the extracted files to disk afterwards. Only writes the final files once.

That's far from the weirdest thing I've done with pipes though, I've installed Windows 11 on a friend's PC across the ocean with a curl | zstd | pv | dd, and it worked. We tried like 5 different USBs and different ISOs and I gave up, I just installed it in a VM and shipped the image.

[–] Max_P@lemmy.max-p.me 5 points 4 weeks ago (4 children)

I've had to use that flag.

--silent is useful when you don't want the progress bar or you're piping curl into something else. I like to do curl | tar -zxv to download and decompress at the same time, I've even tar -zc | curl to upload a backup taking no disk space to do so.

The problem however is it's really silent: if it fails, it exits with a non-zero code and that's it. Great when you don't want debug info to interfere, annoying when you need to debug it.

So you can opt-in to print some errors when in silent mode, but otherwise be silent.

[–] Max_P@lemmy.max-p.me 2 points 1 month ago (1 children)

Then why do you have to agree to Google's ToS to use it if it's local only?

[–] Max_P@lemmy.max-p.me 12 points 1 month ago (3 children)

Especially given how easy it is to bypass Bitlocker anyway: https://youtu.be/Cc6vrQSVMII

[–] Max_P@lemmy.max-p.me 7 points 1 month ago (1 children)

Federation means, multiple servers talking to one another and exchanging information.

You're on lemdro.id, I'm on my own server, yet we can talk. I can shut down my server, and you will still see my comments from lemdro.id.

This ensures you don't have to be on a single website along with everyone else: you're always free to leave lemdro.id if you wish and go to say, lemmy.world or sh.itjust.works or whatever other instance you feel like.

Lemdro.id doesn't appear to block any servers, so it will federate with any server that doesn't block lemdro.id. You can see the list here: https://lemdro.id/instances/linked.

[–] Max_P@lemmy.max-p.me 8 points 1 month ago

The solution there isn't to give your data to another country, it's to take control of your data.

Buy an old machine, slap NextCloud on it, done.

[–] Max_P@lemmy.max-p.me 28 points 1 month ago (1 children)

They have a poor history of incidents that leaves many people not trust them.

https://manjarno.pages.dev/

[–] Max_P@lemmy.max-p.me 19 points 1 month ago (4 children)

Does Isreal get eradicated for violating the ceasefire repeatedly?

[–] Max_P@lemmy.max-p.me 18 points 1 month ago (1 children)

Perks of still running bare metal in colo, no issues for any of my stuff. Not seeing anyone say anything in the Lemmy chat on Matrix either.

[–] Max_P@lemmy.max-p.me 115 points 2 months ago (6 children)

I bet they'll eventually get caught using coffee shop cameras and conversations for AI training, say it's for training a security product or something.

[–] Max_P@lemmy.max-p.me 1 points 2 months ago

It really depends, most people end up specializing into specific things they work on as software has generally become too big for single developers. We have people that only do frontend stuff so things look nice on the website, some only deal with the database and making sure we return results as efficiently as possible.

I started off doing the typical full stack but I've since branched off into DevOps so now I'm responsible for a few hundred servers across the globe that I keep updated and running smoothly.

Sometimes I work on new tools, sometimes I spend days tracking down weird problems, sometimes I'm rushing hotfixes because something is repeatedly crashing in production.

It's worth noting that because you can click through UIs these days doesn't mean that scales as you go. You can go spin up your app in a container in the cloud mostly through UI, but soon enough the defaults aren't enough. I manage several hundreds of instances across a few clouds, I'll well, well past clicking next next next finish. It's just an easy and visual way to ease you into things, especially for beginners, as all the options available to you are there to see along with little help tooltips explaining what a setting does.

It also depends on what you do: if you work at a startup, clicking through Cloudflare's dashboard is more than enough. When you have thousands of customers, you're not managing the tens of thousands of settings you have to configure, you automate.

Code can describe things (HTML, CSS, HCL), code can configure things (YAML, JSON, Ansible), code can program things (PHP, JavaScript, Python, Ruby, etc), code can query things (SQL), programming as a whole is very wide.

[–] Max_P@lemmy.max-p.me 9 points 2 months ago

It's meant to protect the software, not the hardware. Of course you can still put a hardware keylogger on it.

You're also only considering the use case of the owner and user being the same person. In a business context, the user and the owner are two different persons. It can be used to ensure the company's MDM and security software aren't tampered with, for example if you try to exfiltrate company data. In that situation, even if you have a keylogger, it doesn't help you much, it still won't allow you root access on the machine, because the user of the machine doesn't have root access either.

Same with servers: you don't even care if the hardware is keylogged, nobody's ever using the local console anyway. But it'll tell you if a tech at the datacentre opened the case, and they can't backdoor the OS during a planned hardware maintenance.

Same with kiosk machines: you can deface the hardware all you want, the machine's still not gonna let you order a free sandwich. If you buy one off eBay you can bypass secure boot and wipe it and use it, but it won't let you sneak a USB on it while nobody's watching and attack the network or anything like that.

But yes, for most consumers it's a bit less useful and often exploited in anti-consumer ways.

 

Cross-posted from "PewDiePie: I installed Linux (so should you)" by @Max_P@lemmy.max-p.me in !linux@lemmy.ml


I don't normally watch him but this popped on my feed, and I'm pretty impressed. Dude really fell the Arch+Hyprland rabbit hole and ended up loving it.

Probably one of the largest YouTuber switching to Linux, and is very positive about it.

That Hyprland rice is pretty sick too.

 

Neat little thing I just noticed, might be known but I never head of it before: apparently, a Wayland window can vsync to at least 3 monitors with different refresh rates at the same time.

I have 3 monitors, at 60 Hz, 144 Hz, and 60 Hz from left to right. I was using glxgears to test something, and noticed when I put the window between the monitors, it'll sync to a weird refresh rate of about 193 fps. I stretched it to span all 3 monitors, and it locked at about 243 fps. It seems to oscillate between 242.5 and 243.5 gradually back and forth. So apparently, it's mixing the vsync signals together and ensuring every monitor's got a fresh frame while sharing frames when the vsyncs line up.

I knew Wayland was big on "every frame is perfect", but I didn't expect that to work even across 3 monitors at once! We've come a long, long way in the graphics stack. I expected it to sync to the 144Hz monitor and just tear or hiccup on the other ones.

 

All the protections in software, what an amazing idea!

 

It only shows "view all comments", so you can't see the full context of the comment tree.

 

The current behaviour is correct, as the remote instance is the canonical source, but being able to copy/share a link to your home instance would be nice as well.

Use case: maybe the comment is coming from an instance that is down, or one that you don't necessarily want to link to.

If the user has more than one account, being able to select which would be nice as well, so maybe a submenu or per account or a global setting.

view more: next ›