Eng

Rus

Dilettante developer knowledge database

Finding python executable from script

argv[0] for python

Get origin url of a Git repository

Get origin url for a Git repository from terminal

Z-function

Computing Z-function of a given string

Listing kubernetes pods with the nodes they run on

How to know on which node each pod is running

Forbidding access to a Docker container port with UFW

Closing a port forwarded into a container

Running Docker containers without sudo

Running Docker containers without superuser rights

Finding an application location on Windows

which for Windows

Changing hostname on Debian 10 (Buster)

Changing hostname on Debian 10 (Buster)

Converting TeX markup to SVG with Matplotlib

Displaying formulas as SVG images with Matplotlib

Creating SQLite database backup

$ sqlite3 db.sqlite3 ".backup db.sqlite3.bak"

Finding location of Python package

$ python -c "import package; print(package.__path__)"

Mark a file as executable in Git

$ git update-index --chmod=+x script.sh