I write about

    Configure IPython5 to have IPython3's readline, tab-completion, (lack-of) syntax highlighting, etc? (self.IPython)

    Configure IPython5 to have IPython3's readline, tab-completion, (lack-of) syntax highlighting, etc? (self.IPython) Like most programmer's I do not like change especially library changes, hence why I had to revert the latest IPython tab-completion back to the previous versions. Start by creating a default iPython profile. From your shell, type: $ ipython profile create That should give output similar to this: [ProfileCreate] Generating default config file: u'/home/user/.ipython/profile_default/ipython_config.py' [ProfileCreate] Generating default config... [Read More]

    Best way to find direct download links of any media

    Best way to find direct download links of any media Disclaimer Notice: This post does not endorse piracy. It's purpose is merely educational. We all know that everyone love convinience, by that I mean having to watch your favorite movie, series or let alone listen to your favorite tunes. But getting hold of those contents in this day of age has became cumbersome. I mere Google search of a movie... [Read More]
    Tags: Tricks

    How to mount remote SSHFS via SSH Tunneling!

    How to mount remote SSHFS via SSH Tunneling! sshfs is very handy for mounting remote directories on your local filesystem. Recently I needed to mount the / directory off a remote server so I can remotely work from home without complicating everything by ssh'ng then vim my code - Painful exercise. All that is needed is to copy the code below to a file and chmod +x it. #!/bin/bash if... [Read More]

    Automagically execute a bash function/cmd upon entering a directory.

    Automagically execute a bash function/cmd upon entering a directory. After growing tired of sourcing Petalinux/Yocto-project settings everytime I needed to create/config a project, I decided to compile a script/code that resides under my ~/.bashrc , the only thing the code/script does it automagically source my settings upon entering the directory else it will just list the contents of that directory. source $HOME/.opt/Xilinx/Vivado/2017.2/settings64.sh export YOCTODIR=$HOME/Documents/Xilinx/EmbeddedLinux/Yocto/poky export PETADIR=$HOME/Documents/Xilinx/EmbeddedLinux/Petalinux function cd { #... [Read More]

    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. Firstly, we will to the Xilinx Downloads page to obtain the installer. Select version 2017.2 on the left sidebar. Choose “PetaLinux 2017.2... [Read More]

    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 is Power Systems. Coming from an Electronics and Computer engineering background this seemed like an obstacle but worry not. I... [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 $ sudo docker rm $(docker ps -a -q) # Delete all images $ sudo docker rmi $(docker images -q) This solution... [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 called global git hooks, and found a fix. Usually the default template library is found at /usr/share/git-core/templates and we are going to... [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 errors I was getting, after multiple Googling attempts I finally found a fix. Linux OS, limit the number of multicast... [Read More]