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
  • 49/50 words 16s read
    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
  • 20/50 words 7s read

    In UNIX everything is a file. A file is a file and a directory is a special kind of file…

    #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
  • 58/50 words 19s read

    I saw something peculiar the other day. Hallucination? The microsoft.com domain was serving up 192.168.1.0 and 192.168.1.1 as A records in a 7 address round robin.

    That’s a spooky reminder to check your rebinding setup — that is, if you’re playing with fire ().

    For example, unbound with private-address and private-domain. Then test if DNS rebinding is possible.

    #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
  • 39/50 words 13s read

    Are the caches warmed up? vmtouch and fincore are two useful programs.

    What do they do? Basically, one can peek at what’s been cached into memory. I somehow ended up re–looking into this today. The Linux kernel is intelligent.

    #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 (edited) view
  • Markdown Plaintext Embed Permalink
  • 68/50 words 23s read

    Many fortnights ago, I foolishly thought writing a theme from scratch would be easy. It was mostly unlike GTK2. About 40 minutes in came a horrifying realization: there’s fundamentally (and definitively) no way to write a consistent theme that works reliably with every application. The minor upside was a working (and somewhat accessible) wireframe theme and a basic understanding of debugging. The end.

    shell
    GTK_DEBUG=interactive firefox
    #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 (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
  • 46/50 words 15s read
    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

    Some nix language gotchas I’ve experienced while using NixOS personally:

    1. Avoid with expressions unless with the inherit keyword for identifying hidden attributes in scope.
    2. Avoid the rec keyword unless there’s tracking/control of infinite set recursion (self naming/references).
    3. Avoid importing more than 1 instance of <nixpkgs> for any evaluation chain unless there’s magic compute and “infinite” memory.

    Tricky is numero three, but crucial for fast feedback regardless of the current thing? I don’t poke around as much to know anymore but; legacy, flakes, community, and possibly others.

    #linux #lists
    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
  • 22/50 words 7s read

    Authors