How to trim whitespace from string in Golang

  • 25 September 2019
  • ADM

How to trim (remove) leading and trailing whitespace from string in Golang using the TrimSpace, Trim, TrimLeft, TrimRight methods from strings package.


How to change DNS settings from command line

  • 18 June 2019
  • ADM

The command line tool used to change the DNS settings is netsh which allows you to configure just about any aspect of your network connections in Windows. In order to use the tool the command line needs to be started as Administrator.


How to change computer's IP address from command line

  • 17 June 2019
  • ADM

The command line tool used to change the IP address is netsh which allows you to configure just about any aspect of your network connections in Windows. In order to use the tool the command line needs to be started as Administrator


How to rename a git branch

  • 13 May 2020
  • ADM

How to rename a git branch in simple steps: rename branch, delete old remote, push the new branch and reset the upstream branch.


How to remove a remote from git

  • 14 April 2020
  • ADM

To remove a remote you can use the command git remote rm in the terminal, from the root folder of your repository.


How to remane a remote from git

  • 10 August 2018
  • ADM

To rename a remote you can use the command git remote rename in the terminal, from the root folder of your repository.