Skip Navigation

User banner

Admiral Patrick

@ ptz @dubvee.org

Posts
443
Comments
3430
Joined
3 yr. ago

I'm surprisingly level-headed for being a walking knot of anxiety.

Ask me anything.

Special skills include: Knowing all the "na na na nah nah nah na" parts of the Three's Company theme.

I also develop Tesseract UI for Lemmy/Sublinks

Avatar by @SatyrSack@feddit.org

  • That's probably the next wheel some overzealous Rust dev will reinvent.

  • Lol, exactly that.

  • It's not really about the karma-farming aspect of things or pleasing a crowd. It's about, in general, making a statement that's otherwise agreeable and then, often pointlessly, following it up with something backhanded, needlessly obnoxious, mean spirited, racist/xenophobic, or otherwise "not good". You know, basic tactfulness.

    A fairly tame example:

  • "Write out what you have to say, and then delete the last sentence" is also a valid translation and solid advice when corresponding over a written medium.

    I've read lots of comments here and elsewhere where a downvote would have been an upvote had they stopped talking one sentence earlier.

  • I also run (well, ran) a local registry. It ended up being more trouble than it was worth.

    Would you have to docker load them all when rebuilding a host?

    Only if you want to ensure you bring the replacement stack back up with the exact same version of everything or need to bring it up while you're offline. I'm bad about using the :latest tag so this is my way of version-controlling. I've had things break (cough Authelia cough) when I moved it to another server and it pulled a newer image that had breaking config changes.

    For me, it's about having everything I need on hand in order to quickly move a service or restore it from a backup. It also depends on what your needs are and the challenges you are trying to overcome. i.e. When I started doing this style of deployment, I had slow, unreliable, ad heavily data-capped internet. Even if my connection was up, pulling a bunch of images was time consuming and ate away at my measly satellite internet data cap. Having the ability to rebuild stuff offline was a hard requirement when I started doing things this way. That's now no longer a limitation, but I like the way this works so have stuck with it.

    Everything a service (or stack of services) needs is all in my deploy directory which looks like this:

     
        
    /apps/{app_name}/
        docker-compose.yml
        .env
        build/
            Dockerfile
            {build assets}
        data/
            {app_name}
            {app2_name}  # If there are multiple applications in the stack
            ...
        conf/                   # If separate from the app data
            {app_name}
            {app2_name}
            ...
        images/
            {app_name}-{tag}-{arch}.tar.gz
            {app2_name}-{tag}-{arch}.tar.gz
    
      

    When I run backups, I tar.gz the whole base {app_name} folder which includes the deploy file, data, config, and dumps of its services images and pipe that over SSH to my backup server (rsync also works for this). The only ones I do differently are ones with in-stack databases that need a consistent snapshot.

    When I pull new images to update the stack, I move the old images and docker save the now current ones. The old images get deleted after the update is considered successful (so usually within 3-5 days).

    A local registry would work, but you would have to re-tag all of the pre-made images to your registry (e.g. docker tag library/nginx docker.example.com/nginx) in order to push them to it. That makes updates more involved and was a frequent cause of me running 2+ year old versions of some images.

    Plus, you'd need the registry server and any infrastructure it needs such as DNS, file server, reverse proxy, etc before you could bootstrap anything else. Or if you're deploying your stack to a different environment outside your own, then your registry server might not be available.

    Bottom line is I am a big fan of using Docker to make my complex stacks easy to port around, backup, and restore. There's many ways to do that, but this is what works best for me.

  • Lol, yeah. That's how my friend tries to get me into Formula 1, and I can definitely see and respect it from that angle. I just can't get past the resources wasted to make a spectacle out of it. I'm just a curmudgeon like that haha.

    Those arguments go away with Formula-E but I just haven't dove into it

  • Not gonna lie: I've always thought drag racing was a massively pointless waste of resources and this further cements that opinion as I didn't know they rebuilt the engine after each run.

    That said, I did enjoy this video because the mechanics/pit crew are the real stars of the show and I'd totally watch a Discovery channel series about them.

  • Yep. I've got a bunch of apps that work offline, so I back up the currently deployed version of the image in case of hardware or other failure that requires me to re-deploy it. I also have quite a few custom-built images that take a while to build, so having a backup of the built image is convenient.

    I structure my Docker-based apps into dedicated folders with all of their config and data directories inside a main container directory so everything is kept together. I also make an images directory which holds backup dumps of the images for the stack.

    • Backup: docker save {image}:{tag} | gzip -9 > ./images/{image}-{tag}-{arch}.tar.gz
    • Restore docker load < ./images/{image}-{tag}-{arch}.tar.gz

    It will backup/restore with the image and tag used during the save step. The load step will accept a gzipped tar so you don't even need to decompress it first. My older stuff doesn't have the architecture in the filename but I've started adding that lately now that I have a mix of amd64 and arm64.

  • Macaw

    Jump
  • I mean, A+ for the dated 90s country music reference alone. Respect.

  • I'm not a tin-foil hatter by any stretch of the imagination, but this has long been my assumption on why "AI" is being pushed down our throats so hard and from so many angles.

    It's almost the perfect spyware, really.

  • I saw "toast sandwich" on QI and, yes, I tried it. Added butter, salt, and pepper to the toast.

    Was pretty good.

  • Technically, yeah. But with less people going to Wikipedia directly there would probably stand to be less chance of getting any new contributors. I'm not sure how the foundation gets all its money, but the more traffic they serve the more they can prove their relevance which might matter for funding

  • I'm such a sucker for art deco. Half of the times I die in Bioshock is because I'm just gawking around at the in-game architecture instead of watching for splicers.

  • Fantastic! 😆

  • Lol, "PatrickGPT" would be the easiest novelty chatbot to write, too.

     basic
        
    10 INPUT "ASK ME ANYTHING>"
    20 PRINT "[THINKING...]"
    30 SLEEP 3
    40 PRINT "THAT'S A STUPID QUESTION"
    50 GOTO 10
    
      
  • I use the web version rather than the app, but I want to say the app can store the library on the SD card if you have one of sufficient size lying around and if the Redmi has the slot for one. But as someone else said, there are smaller versions you can download if you can't fit the full one.

    Not trying to push Kiwix on you, but I just can't emphasize enough how handy it is to have offline Wikipedia always on hand.

    • Termux has lots of possibilities
    • Pair it with a Meshtastic node and make it a dedicated communicator
    • I run HomeAssistant and Emby and have several old smartphones to work with, so one lives in each room and act as remotes for those
    • Setup Asterisk and make a VoIP system using old smartphones and SIP clients as handsets
    • Check if PostmarketOS supports it. I haven't used it, but it basically turns your phone into a Linux machine if I understand correctly
    • Use it as your "ugh, I have to use an app for [THIS]?!" phone. Basically things that require an app for setup or one-off apps you can't avoid using.
    • Make your own little portable Library of Alexandria. Install Kiwix and download a bunch of ZIMs from their library. If you've got at least 130 GB to work with, you can even fit the entire Wikipedia dump with images and have that locally.

  • Deleted

    Permanently Deleted

    Jump
  • 70s Music @lemmy.world

    Lynyrd Skynyrd - Free Bird

    song.link /y/0LwcvjNJTuM
  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    There's one in every crowd

  • Fuck AI @lemmy.world

    Still me. Still human. Fuck AI.

  • Technology @lemmy.world

    PSA: Stop Using These Fire-Prone Anker Power Banks Right Now

    gizmodo.com /psa-stop-using-these-fire-prone-anker-power-banks-right-now-2000622061
  • Technology @lemmy.world

    Bipartisan Open App Markets Act revived to challenge Apple's App Store control

    appleinsider.com /articles/25/06/25/bipartisan-open-app-markets-act-resurrected-to-challenge-apples-app-store-control
  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    You're still a powerful man. Why else would I be kissing your ass?

  • Fedigrow @lemmy.zip

    Should "dog-piling" be discouraged, and if so, what would be the best way to do so?

  • Unpopular Opinion @lemmy.world

    Microblogging is dumb

  • me_irl @lemmy.world

    me_irl

  • Electric Vehicles @slrpnk.net

    Ford plows ahead on EV battery factory amid political storm

    www.axios.com /2025/06/23/ev-batteries-ford-senate-budget
  • Lemmy Shitpost @lemmy.world

    Glenn Close Enough

  • Today I Learned @lemmy.world

    TIL: There is a demon named "Leonard". He's a three-horned goat in charge of orgies.

    en.wikipedia.org /wiki/Leonard_(demon)
  • Showerthoughts @lemmy.world

    Terry Crews has made "A Thousand Miles" more famous than OP Vanessa Carlton

  • me_irl @lemmy.world

    me_irl

  • Opensource @programming.dev

    WHIP Muxer Merged To FFmpeg For Sub-Second Latency Streaming

    www.phoronix.com /news/FFmpeg-Lands-WHIP-Muxer
  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    Better watch out, Q: Janeway's one cup from being immortal too.

  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    "Computer, activate the EMH"

  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    Gotta love Garak

  • Cyanide and Happiness @lemm.ee

    Any plans to move to a new instance?

  • memes @lemmy.world

    When people ask why I tag some posts "Not OC"...