VirtualTam's bookmarks

  1. pactree - package dependency tree viewer

     1$ pactree python-tox | rg 'python-'
     2
     3python-tox
     4├─python-cachetools
     5├─python-chardet
     6├─python-colorama
     7├─python-filelock
     8├─python-packaging
     9├─python-platformdirs
    10├─python-pluggy
    11├─python-pyproject-api
    12│ └─python-packaging
    13└─python-virtualenv
    14  ├─python-distlib
    15  ├─python-filelock
    16  └─python-platformdirs
    
  2. The format of here-documents is:

    1[n]<<[-]word
    2        here-document
    3delimiter
    

    If any part of word is quoted, the delimiter is the result of quote removal on word, and the lines in the here-document are not expanded.

    This is useful to write scripts that:

    • write scripts (verbatim)
    • execute a sequence of commands (verbatim) on a remote host
  3. 1# GNU sed
    2sed -e 's/\x1b\[[0-9;]*m//g'
    3
    4# macOS
    5sed -e $'s/\x1b\[[0-9;]*m//g'
    
    1. Blocking TCP port 53 traffic leads to very strange failures. Don't.
    2. The source you're looking at is not the code running in production.
    3. "Prod" is just another name for "staging".