Jun 172019

ADM

How to change computer's IP address from command line

  • June 17 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

May 152019

ADM

How to split a string into slice in Golang

  • May 15 2019
  • ADM

How to split a string into slice using Golang. For a simple split by a singular character you can use Split() method from strings package. For more complex rules the regexp.Split() method can be used.

May 82019

ADM

How to convert string to uppercase in Golang

  • May 8 2019
  • ADM

How to convert a string into uppercase in Golang using ToUpper method from strings package.

May 72019

ADM

How to convert string to lowercase in Golang

  • May 7 2019
  • ADM

How to convert a string into lowercase in Golang using ToLower method from strings package.

Apr 152019

ADM

How to convert string to hex string in Golang

  • April 15 2019
  • ADM

How to convert a string into a hex string type in Golang using EncodeToString method from encoding/hex package.

Apr 122019

ADM

How to convert hex to string in Golang

  • April 12 2019
  • ADM

How to convert hex to string in Golang using the DecodeString method from encoding/hex package.

Dec 112018

ADM

How to rename a git branch

  • December 11 2018
  • ADM

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