This quick tutorial is going to show you how to install the latest Python-3.7.0 in Ubuntu 16.04 LTS
[Read More]
Hi, Mpho is my name!
Hi, Mpho is my name!
I write about
One liner to stop and delete all of Docker containers
```bash
$ docker stop $(docker ps -a -q); docker rm $(docker ps -a -q); docker rmi $(docker images -q); docker volume rm $(docker volume ls -q –filter dangling=true)
[Read More]
Running code at IPython Startup
Ever wondered, if there was a way you would automagically execute certain codes(eg import modules, etc) upon opening your favourite interactive python command shell (tl;dr IPython). I guess that’s the reason why you are reading this post.
[Read More]
What is your 10 common Linux commands?
Dear command line ninjas, Mr CLI and keyboard pianist:
[Read More]
Useful Bash Aliases and Functions
A number of Linux CLI tools use the “subcommand” pattern, ie the command takes a subcommand argument separated by white-space. For example: git, which uses subcommands like pull, clone, checkout, etc.:
[Read More]
Automatically check your Python code for errors before committing
Updated 2018-07-16
[Read More]
How to rename git branch locally and remotely
Most times I find myself, with the need to rename a git branch I am working on, due to various reasons.
[Read More]
Add Git branch name and last updated to bash prompt
In order to add branch name to bash prompt we have to edit the PS1 variable(set value of PS1 in ~/.bashrc).
[Read More]
Reverse sort order of a multicolumn file in BASH
I wanted to do some code clean up with flake8 and in the midst of it all I wanted to start bottoms up, that way I do not have to re-run flake everytime I make a change as it would eventually messes with the line numbers.
Reason for doing all this, is that code that isn’t PEP8 gives me goosebumps, some might say I have OCD on non-PEP8 code
[Read More]
[Project] Smart Home Automation using Raspberry Pi and Arduino
Added repo and project repo links.
[Read More]