I write about

    How do I change the hostname without a restart?

    How do I change the hostname without a restart? Without restart: Update new hostname sudo vim /etc/hostname also update sudo vim /etc/hosts accordingly sudo sysctl kernel.hostname=mynewlocalhost When done check your current hostname with hostname -f

    Docker: Remove all images and containers

    Docker: Remove all images and containers Problem: You use Docker, but working with it created lots of images and containers. You want to remove all of them to save disk space. Solution: Warning: This will destroy all your images and containers. It will not be possible to restore them! Run those commands in a shell: # Delete all containers $... [Read More]

    Create a global git commit hook

    Create a global git commit hook Recently found out about these git hooks and they work flawlessly but my only worry was that I had to copy all my hooks over every repo such that I could use them, which was a pain sometimes. Then started reading about this so... [Read More]

    How to ignore files only locally in git?

    How to ignore files only locally in git? I have automated tests running everyday, and the issue is that those tests make necessary changes to certain files depending on which test is running. This becomes a problem when I have to report the changes in the repo, as this will report... [Read More]