Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)RU
Posts
29
Comments
717
Joined
2 yr. ago

  • I oversimplified it but the actual process was to zip files to send to an FTP server

    The cron zipped the files to send in the same directory as the zipped files, then sent the zip, then deleted the zip

    Looks fine, right? But what if the FTP server is slow and uploading take more time than the hourly cron dispatch? You now have a second script that zip all the folder, with the previous zip file, which will slow down the upload, etc...

    I believe may have been started by an FTP upload erroring out and forcing an early return without having a cleanup, and progressively got worse

    ... I suppose this happened. The logs were actually broken and didn't actually add the message part of the error object, and only logging the memory address to it

  • Well it's not that simple... Because whoever wrote that made it way too complicated (and the production version has been tweaked without updating the dev too)

    A clean rewrite with some guard clauses helped remove the haduken ifs and actually zipping the file outside of the zipped directory helped a lot

  • Meanwhile, had to debug a script that zipped a zip recursively, with the new data appended. The server had barely enough storage left, as the zip took almost 200GB (the data is only 3GB). I looked at the logs, last successful run: 2019

  • Comic Strips @lemmy.world

    Child trafficking

  • I kinda hate the push towards passkeys. If you have two factor Auth, going to passkeys makes you go back to 1 factor, aka less secured.

    There's also more and more 2FA fatigue attacks going on, and they can affect passkeys too, and if you don't have a 2FA that involves the user writing a code on the 2FA device, passkeys could be quite possibly worse than passwords

  • Lemmy Shitpost @lemmy.world

    It's that time of the year again

    Rance @jlai.lu

    L'avion de Paris - Pau

    Comic Strips @lemmy.world

    Mimi #8: New show

    Comic Strips @lemmy.world

    Mimi #7: First Day of Class

    Comic Strips @lemmy.world

    Mimi #67: Flat

    Comic Strips @lemmy.world

    Mimi #6: Don't forget

    Comic Strips @lemmy.world

    Mimi #3: Proposal

    Atheist Memes @lemmy.world

    Last resort

    Flork of Cows Comics @lemmy.world

    Horse racing

    Comic Strips @lemmy.world

    Mimi #66: Gift

    Comic Strips @lemmy.world

    Mimi #2: Genie

    Comic Strips @lemmy.world

    Mimi #1: Shrimp fried rice

    Comic Strips @lemmy.world

    Mimi #65: Plot twist

    Comic Strips @lemmy.world

    Mimi #64: Recycle

    Flork of Cows Comics @lemmy.world

    04/06/2025

    Fuck AI @lemmy.world

    Made for terrible comic day

    Blender @lemmy.world

    Are memes allowed if you made it in blender?

    Fediverse @lemmy.world

    Any fediverse like discord clones?

    Factorio @lemmy.world

    TIL that pass through connections can pass through any fluid, not just electrolyte