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
  • 54/50 words 18s read

    I was shown this thing called . It’s the sneakiest of tricks for primitively boosting any . It’s supported in the web servers nginx, apache, lighttpd, and others.

    nginx
    server {
      ssi on;
      ssi_last_modified on;
    }
    The ‘ssi_last_modified’ is the magic option for ’nginx’. That preserves the original modification headers if you’re feeling advanced.
    #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 view
  • Markdown Plaintext Embed Permalink
  • 82/50 words 27s read

    There’s a quick way to test the offline behaviour of programs on Linux.

    shell
    unshare -c -n bash
    Then only loopback is available.
    shell
    $ ip addr
    1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    List network namespaces with lsns.

    shell
    $ lsns -t net
    NS  TYPE NPROCS PID   USER  NETNSID    COMMAND
    999 net  2      111   user  3          systemd
    888 net  1      222   user  unassigned └─bash
    #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
  • 86/50 words 29s read

    I came across a peculiar site. It’s called https://no-color.org (terminals). Xterm and ansifilter work well for programs that are unable to contextually disable colors.

    shell
    ls -la | ansifilter   # Remove colors from output
    xterm -cm             # Set color mode to false
    export NO_COLOR=true  # For programs that follow
    The more methods the better

    I used to wonder why some preferred no syntax/color highlighting. It turns out that output can/will be hidden ( black on black, white on white) and color contrasts/distinctions are the ultimate talk past.

    #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 view
  • Markdown Plaintext Embed Permalink
  • 96/50 words 32s read

    The interest in online is high. In the real world you tend to be constrained and blindfolded by the tools available/allowed. Filtering is peculiar though.

    See how the terminal/editor splits? Filtering makes them kiss? Commands that input|output (pipe) work best (compilers, transpilers and code generators). The meta is the limit.

    Everything's just a string? (Obviously, I don't know all of these languages).
    Index: Cache · Source
    #clips #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
  • 109/50 words 36s read

    Some of my configuration files are online aren’t they? Raku is one of the most interesting, if not the most. I’m not an expert but it pretty much has every language construct ( promises) plus exotic stuff. The exotic operators are strangely intuitive (and “hyped”).

    raku
    my @bin = 1..3;
    @bin>>++;
    say @bin;
    My array (@) named bin has numbers 1 to 3 (1..3) like this [ 1 2 3 ]. The hyper operator »++ increments (++) its items by 1. Say prints [ 2 3 4 ].

    I use it for quick with the multi dispatch CLI feature. The logo is a butterfly (or maybe it’s a raccoon).

    #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 view
  • Markdown Plaintext Embed Permalink
  • 88/50 words 29s read

    File name, spelling, and dictionary completion exist too. This is tortured, but combining them makes a meta point? The “meta” is hard to convey, but completion doubles as a way of finding, changing, and passing keywords around. Terminals are fair game too. That’s basic completion in a nutshell (minus the magic).

    #clips #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 view
  • Markdown Plaintext Embed Permalink
  • 81/50 words 27s read

    Command line completion is probably another lesser known one. The command line window is minimized, but typing q: (commands) and q/ or q? (search forward/backward) opens it up completely. Wild mode configures its behaviour.

    #clips #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 view
  • Markdown Plaintext Embed Permalink
  • 88/50 words 29s read

    Abbreviations are another completion primitive in Vim. Since it’s full auto, it wants to be magical. <Key> presses and scripts can be replayed. Paired with custom completions and output from external tools, it transforms into advanced witchcraft and/or cursed sorcery. In my case, it just expands acronyms.

    Expand once by simulating key presses and undoing previous abbreviations.
    Index: Cache · Source
    #clips #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 view
  • Markdown Plaintext Embed Permalink
  • 81/50 words 27s read

    Here’s Vim editor thesaurus completion. This kind of completion has its various limitations that I might detail later. I mentioned thesauri in passing but my Internet connection is pitiful and writing about editor meta feels a bit bizarre.

    Tight completions help with focus. Using an external tool becomes optional.
    Index: Cache · Source
    #clips #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 view
  • Markdown Plaintext Embed Permalink
  • 81/50 words 27s read

    More Vim editor meta? Since posting a video of my LaTeX/Vim shenanigans, queries for tips arrive occasionally. Completion and whole line completion are boilerplate hammers. The more buffers and windows loaded, the more “robust”.

    It's not always efficient and depends on knowing what you're trying to complete.
    Index: Cache · Source
    #clips #gists

    Authors