How to rename an existing git remote ?

To list down your remote repository handles that is currently being used in local repository, we use git remote -v command. To rename a remote, you can use the following […]

How to remove a git remote ?

To list down your remote repository handles that is currently being used in local repository, we use git remote -v command. To remove a remote from your local repository, you […]

List processes using internet in Ubuntu

To list the processes that are using your internet connection in Ubuntu (or Linux, in general), we can use the netstat –inet -ap command. This command will list down the […]

Limit docker container memory usage

We should limit the memory usage to the containers like limiting the CPU usage. Providing unlimited memory usage to the docker containers may lead to Out of memory fatal errors […]

Limit docker container CPU usage

Providing unlimited host CPU usage to the docker containers may lead to performance issues. By default, each container’s access to the host’s CPU cycles is unlimited. To avoid this we […]

Rename a collection in MongoDB

Renaming a collection in MongoDB is quite simple. When you rename a collection, it obtains a lock on the collection till the rename process is complete. Syntax Example Here the […]

Slicing in Python

Slicing from a list or string can be achieved in Python using the following syntax. Syntax Examples Slicing from string can be done like..