How to trim whitespace from string in Golang
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
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
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
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
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
To rename a remote you can use the command git remote rename in the terminal, from the root folder of your repository.