How to generate a random int in Golang
In Golang there a are two libraries for generating random integers, one is a pseudo-random number generator (package math/rand
) and the second one is cryptographically secure random number generator (package crypto/rand
)
How to fix apt lock-frontend error in Ubuntu
How to fix the E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
error.
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 Install GoLang 1.10 on Ubuntu
How to Install GoLang 1.10 on Ubuntu. This can be applied to any Golang version and for any Ubuntu version.