Shortcut to get current machine IP address

Search for machine IP address

On windows when you want to know the machine IP address you typically type ipconfig. This command provides too much of text and you literally have to go through all the junk to find the text that contains the IP address.

Here is a tip to extract the IP address from the output generated by this command. Type this command at the command prompt.

How this works?

The output of the ipconfig command is piped to the the next command through the ‘|’ symbol. The next command is ‘findstr’. This command searches for a substring in the given text. It works more like the ‘grep’ command in Unix/Linux.

The option ‘/i’ does a case insensitive search.

This command extracts the line that contains the text ‘ipv4’ while doing a cases insensitive search.

The command output looks something like this

ipconfig shortcut

Please follow and like my blog:
Tips for gitignore files

Tips for gitignore files

Here are some tips for using git ignore files in your projects. I will keep updating this list so keep checking.

1. Creating .gitignore in Windows Explorer

If you are trying to create .gitignore from the windows explorer windows throws an error. This is because of historic reasons that file name before the extension cannot be blank.

To workaround this issue you can create a file with the name “.gitignore.” in the windows explorer. This will automatically remove the “.” at the end and the file with name “.gitignore” will be created.

2. Get the default settings of .gitignore for the specific project type.

Go to the site https://www.gitignore.io/ and search for the specific project type to get the default settings for your project type.

For example, if you want the specific settings of Visual Studio projects you can search on this site and copy these to the .gitignore file on in you git repository and start working immediately.

Please follow and like my blog:

Docker to increase your productivity

Docker usage in the development and test environment can save you lot of effort and time. Windows containers are new and are still evolving. Using them requires a big change in the mindset. To begin with, the team could start using the docker in the development process to get familiar with the Windows containers.This article talks about some of the places where you could use docker to save time and in the process you will also get familiar.

Please share your experiences where you saved time using docker or Windows containers.

Please follow and like my blog: