I write about

    Xilinx PetaLinux 2017.2 installation on Ubuntu 16.04.3

    Xilinx PetaLinux 2017.2 installation on Ubuntu 16.04.3 The user guide for Xilinx PetaLinux 2017.2 installation is UG1144. It is best used together with Xilinx Vivado 2017.2 version (see my last post about how to install Vivado). More info about PetaLinux embedded OS can be found on Xilinx Products page, and on the Xilinx Wiki site.... [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]

    [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]