Civilloquy
  • Communities
  • Create Post
  • 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
61
fedilink
743

ultimate storage hack

sh.itjust.works

einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 1 month ago
message-square
61
fedilink
  • stochastictrebuchet@sh.itjust.works
    link
    fedilink
    arrow-up
    76
    ·
    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
      11
      ·
      1 month ago

      each file is minimum 4kb

      (base64.length/max_character) * min_filesize < actual_file_size

      For this to pay off

      • The Ramen Dutchman@ttrpg.network
        link
        fedilink
        English
        arrow-up
        2
        ·
        29 days 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
          ·
          29 days ago

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

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

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

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

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

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.

  • 802 users / day
  • 4.02K users / week
  • 8.15K users / month
  • 15.9K users / 6 months
  • 1 local subscriber
  • 24.1K subscribers
  • 1.32K Posts
  • 32.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org