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
Java Custom Annotations Example
How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.
How to execute shell command from Java
How to execute a shell command from Java using Runtime.getRuntime().exec()
method.
How to generate UUID / GUID in Java
How to generate UUID / GUID in Java using java.util.UUID
class, UUID.randomUUID()
method.
How to change the hostname in Ubuntu
How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl