Skip to main content
tdro

Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.

tdro micro.thedroneely.com view
  • Markdown Plaintext Embed Permalink
  • 56/50 words 19s read

    Some SSH options are worth tweaking when directly distributing code with git to multiple remotes. ConnectTimeout and BatchMode (optionally for automation). ControlMaster enables multiplexing for session sharing via sockets.

    cfg
    ForwardX11 no
    Compression no
    ConnectTimeout 3
    ServerAliveCountMax 1
    ServerAliveInterval 10
    
    Host *
      ControlMaster auto
      ControlPersist yes
      ControlPath ~/.ssh/sockets/%r@%h-%p
    An example ~/.ssh/config or /etc/ssh/ssh_config

    %r@%h-%p translates to user@hostname-22.

    #gists
    tdro

    Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.

    tdro micro.thedroneely.com (edited) view
  • Markdown Plaintext Embed Permalink
  • 130/50 words 43s read

    An actual but where did my Linux memory go command;
    This program (repositories) came in handy while helping someone resolve an problem. Want to see memory usage and shared memory, perhaps sorted by swap?

    shell
    smem -s swap -kta
    smem --sort swap --abbreviate --totals --autosize
    What about on other categories running a --sort?
    text
    swap     (amount of swap space consumed ignoring sharing)
    command  (process command line)
    maps     (total mappings count)
    name     (process name)
    pid      (process id #)
    user     (process owner)
    pss      (proportional set size including sharing)
    rss      (resident set size ignoring sharing)
    uss      (unique set size)
    vss      (virtual set size; total virtual memory mapped)
    Bonus: A filesystem usage command to catch /tmp/ and tmpfs (temporary file storage) abusers;
    shell
    df -h | grep tmpfs
    df --human-readable | grep tmpfs
    #gists #linux
    tdro

    Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.

    tdro micro.thedroneely.com view
  • Markdown Plaintext Embed Permalink
  • 103/50 words 34s read

    Text fragments are a Chromium feature from a couple years ago. They (#:~:text=) emulate CTRL + F or window.find() from a . I experimented in times past with a snippet–like approach using <mark> with URL encoded terms on id + :target logic, such that clicking this link highlights the paragraph below.

    text
    https://web.dev/text-fragments/#:~:text=Text%20Fragments%20let%20you
    The article says ‘boldly link’, but personally fragments (any) work best on infrequently changing content. Long URLs do text fragments make. Annoying? Who knows/cares? They are not everywhere yet (Firefox). On another tangent; I discovered that hugo did have the urlquery function available (that nice blog saved me code surfing). #gists #webdev
    tdro

    Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.

    tdro micro.thedroneely.com (edited) view
  • Markdown Plaintext Embed Permalink
  • 88/50 words 29s read

    It’s amusing the sort of easter eggs found hiding in open source code. I’ve been playing around with farzher/fuzzysort, a fast fuzzy search picked up from the Stack Overflow fuzzy search tag.

    On line 27 and 40 there’s a horizontal off–screen scroll easter egg.

    javascript
    if(search=='farzher')return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]}
    if(search=='farzher')return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:targets?targets[0]:NULL}]

    Yes, I happen to be one of those who read the code eventually. And obviously, it goes without saying, no one person reads all the code. But it’s the Internet, can’t be too sure ;)

    #gists

    Authors

    Gallery

    Web Feeds (6)

    Web Links