Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 months ago

ultimate storage hack

sh.itjust.works

message-square
90
fedilink
886

ultimate storage hack

sh.itjust.works

@[email protected] to Programmer [email protected] • 2 months ago
message-square
90
fedilink
  • stochastictrebuchet
    link
    fedilink
    93•2 months 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.

    • @[email protected]
      link
      fedilink
      16•2 months ago

      each file is minimum 4kb

      (base64.length/max_character) * min_filesize < actual_file_size

      For this to pay off

      • @[email protected]
        link
        fedilink
        2•1 month ago

        Just use folders instead 😏

      • The Ramen Dutchman
        link
        fedilink
        English
        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?

        • @[email protected]
          link
          fedilink
          1•1 month ago

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

          • The Ramen Dutchman
            link
            fedilink
            English
            2•19 days ago

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

    • @[email protected]
      link
      fedilink
      10•2 months ago

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

    • @[email protected]
      link
      fedilink
      English
      2•
      edit-2
      2 months ago

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

Programmer [email protected]

[email protected]
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: [email protected]

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
  • 1 user / day
  • 218 users / week
  • 1.51K users / month
  • 4.3K users / 6 months
  • 3 subscribers
  • 1.55K Posts
  • 55.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org