Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. longintrepr.h

    Did your pip install fail with longintrepr.h: No such file or directory?

  2. Files by age, newest first: ls -lt Docker images by age, newest first: docker images --format "{{.CreatedAt}}\t{{.Repository}}:{{.Tag}}" | sort -r Files by size, largest first: ls -lS Docker images by size, largest first: docker images --format "{{.Size}}…

  3. Slow boot?

    Does your Linux box take forever to boot?

  4. Terminal colours

    \x1B[38;5;105m and \x1B[38;5;141m are a great combo.

  5. Don’t do this: thing = Thing() try: thing.do_stuff() finally: thing.close() Do do this: from contextlib import closing with closing(Thing()) as thing: thing.do_stuff() Why is the second better?

  6. Too many git branches?

    Do you have too many git branches on the go at once?

  7. Python atomic counter

    Do you need a thread-safe atomic counter in Python?

  8. git submodule forgetting

    Did you forget the -r when cloning a git repo with submodules?

  9. Have you written a Docker Registry API client in GitLab CI/CD YAML?

  10. sudo tee >/dev/null

    Need to redirect to a file from sudo?