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
    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".
  3. 1git rev-list --objects --all \
    2| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
    3| sed -n 's/^blob //p' \
    4| sort --numeric-sort --key=2 --reverse \
    5| head -n 150 \
    6| cut -c 1-12,41- \
    7| $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest