I write about

    My first experience with the ZedBoard SoC board.

    My first experience with the ZedBoard SoC board. I recently registered my Masters and part of my research includes the use of an FPGA for real-time network communications between smart grids. So I am faced with 2 things - learning a new environment as well as a different engineering field which... [Read More]

    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]

    Why am I getting 'Errno(105): No buffer space available' when subscribing to multicast addresses?

    Why am I getting "Errno(105): No buffer space available" when subscribing to multicast addresses? I have been experiencing multicast subscription errors on my linux box when trying to subscribe to more that 20 IP's via smcroute and Python-Socket module. See below image to get an idea of the kind of... [Read More]

    [Cool trick] Shortcut to mkdir and cd to it!

    [Cool trick] Shortcut to mkdir and cd to it! Append following code to /$HOME/.bashrc function mkdir{ command mkdir $1 && cd $1 } Then, execute .bashrc source ~/.bashrc

    Using Git bisect to find out when a bug was introduced!

    Using Git bisect to find out when a bug was introduced! ----Simplified explanation---- Here's how to use git bisect , step-by-step! Step 1: Find a commit where things were working. ... Step 2: Find a commit where things are not working. ... Step 3 - N: Use git bisect to... [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]

    How can I merge two or more Git commits into one[locally and remote]?

    How can I merge two or more Git commits into one[locally and remote]? You can do this fairly easily without git rebase or git merge --squash. In this example, we'll squash the last 3 commits. If you want to write the new commit message from scratch, this suffices: git reset... [Read More]