Ponder.cat
  • Communities
  • heart
  • search
    • Login
    • Sign Up
    • Communities

    • heart
      Support Lemmy
    • search
      Search

    • Login
    • Sign Up
    einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 1 month ago

    ultimate storage hack

    sh.itjust.works

    message-square
    90
    fedilink
    878

    ultimate storage hack

    sh.itjust.works

    einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 1 month ago
    message-square
    90
    fedilink
    • stochastictrebuchet@sh.itjust.works
      link
      fedilink
      arrow-up
      94
      ·
      1 month ago

      Broke: file names have a max character length.

      Woke: split b64-encoded data into numbered parts and add .part-1…n suffix to each file name.

      • tetris11@lemmy.ml
        link
        fedilink
        arrow-up
        16
        ·
        1 month ago

        each file is minimum 4kb

        (base64.length/max_character) * min_filesize < actual_file_size

        For this to pay off

        • Venator@lemmy.nz
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          Just use folders instead 😏

        • The Ramen Dutchman@ttrpg.network
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 month ago

          each file is minimum 4kb

          $ touch empty_file
          $ ls -l
          total 8
          -rw-rw-r-- 1 user group 0 may 14 20:13 empty_file
          $ wc -c empty_file 
          0 empty_file
          

          Huh?

          • tetris11@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            Oh, I’m thinking folders aren’t I. Doy…

            • The Ramen Dutchman@ttrpg.network
              link
              fedilink
              English
              arrow-up
              2
              ·
              15 days ago

              It seems those are 4 KiB on Linux, interesting to know.

      • mmddmm@lemm.ee
        link
        fedilink
        arrow-up
        10
        ·
        1 month ago

        I’d go with a prefix, so it’s ls-friendly.

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 month ago

        Browse your own machine as if it’s under alt.film.binaries but more so

    Programmer Humor@programming.dev

    programmer_humor@programming.dev

    Subscribe from Remote Instance

    Create a post
    You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

    Welcome to Programmer Humor!

    This is a place where you can post jokes, memes, humor, etc. related to programming!

    For sharing awful code theres also Programming Horror.

    Rules

    • Keep content in english
    • No advertisements
    • Posts must be related to programming or programmer topics
    Visibility: Public
    globe

    This community can be federated to other instances and be posted/commented in by their users.

    • 1.16K users / day
    • 4.09K users / week
    • 10.1K users / month
    • 18K users / 6 months
    • 1 local subscriber
    • 24.3K subscribers
    • 906 Posts
    • 16.2K Comments
    • Modlog
    • mods:
    • adr1an@programming.dev
    • Feyter@programming.dev
    • BurningTurtle@programming.dev
    • Pierre-Yves Lapersonne@programming.dev
    • UI: unknown version
    • BE: 0.19.8
    • Modlog
    • Instances
    • Docs
    • Code
    • join-lemmy.org