home.social

#hardlink — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #hardlink, aggregated by home.social.

fetched live
  1. Watching some code running in that window over there -> slowly consume more and more and more memory. But don't worry! It's not leaking! Honest! That's just what does.

    In other news, the patch I contributed a few years ago to make it work on a Mac has been tweaked and moved around and so on to the extent that the only line now says is my fault is, errm, a single `#endif` 😃

    github.com/util-linux/util-lin

  2. I'm not a programmer, but sometimes I code anyway.

    Since I often use that code on my headless server, I'm used to edit with nano, but that's not always very handy. So today I started looking for an #FTP extension in #VSCODE, to let me edit and then upload to the server.
    It didn't go well, because most plugins have bad ratings, so I didn't even try any. Then I remembered that #WinSCP can do FTP as well.. Well, it works wonders!

    After I connect to my server's FTP, I can just double click any file in the remote pane of WinSCP and edit them on the fly with whatever application is tied to the file's extension; save and it's already there.

    So, now, for a simple #XMPP bot which is actually a single #python file, I created an #hardlink from source dir to another dir inside ~/ftp and it's double magic. After I save on VSCODE, it's saved in the FTP dir and in the source dir as well!

    💛

  3. I think this is nerdy but I want to share.

    Something I just did makes me feel dumb, but also makes me laugh at myself.

    I thought I had two identical files that could be optimized by making one a hard-link of the other. I deleted one and hard-linked to recreate it.

    I saw I had three hard-links on the file.

    The third hard-link was in my trash bin.

    I had not checked to see if the two files were already hard-linked before I deleted the one.

    #PC #filesystem #hardlink #Linux

  4. is a duplicate file linker.

    hardlink links files with identical content together using hardlinks. hardlink can include metadata in its difference checking, and can prefer files based on their metadata. hardlink supports a dry run mode for quickly examining the operation safely. hardlink also supports inclusion and exclusion regexes.

    Website 🔗️: jak-linux.org/projects/hardlin

    apt 📦️: hardlink