[โ€“] 2 points 11 months ago* (1 child)

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.

  • source
  • parent
  • context
  • [โ€“] 4 points 11 months 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.

  • source
  • [โ€“] 7 points 1 year ago (1 child)

    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.

  • source
  • [โ€“] 1 point 1 year 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.

  • source
  • view more: next โ€บ