Tech pr0n
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 4 days ago

ultimate storage hack

sh.itjust.works

message-square
87
link
fedilink
867

ultimate storage hack

sh.itjust.works

einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 4 days ago
message-square
87
link
fedilink
  • stochastictrebuchet@sh.itjust.works
    link
    fedilink
    arrow-up
    94
    ·
    4 days 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
      ·
      3 days 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
        ·
        1 hour 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
          ·
          24 minutes ago

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

      • Venator@lemmy.nz
        link
        fedilink
        arrow-up
        2
        ·
        8 hours ago

        Just use folders instead 😏

    • mmddmm@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      3 days ago

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

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      3 days 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.88K users / day
  • 4.79K users / week
  • 8.82K users / month
  • 16.9K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 762 Posts
  • 13.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org