Tag Archives: 2017

Bash: Get IP and IPv6 address and interfaces.

First use this commands to see your IP and IPv6 address and interfaces.

Now if you want to use this every day, just open your .bashrc file from your home folder. Add this functions to the .bashrc file:

Now open a new terminal shell and use it:


Network and Windows – Wi-Fi and invalid ip address;

Start Command Prompt as administrator and use this commands to solve this issue:

First command reset winsock and the second reset TCP/IP stack. 1. Windows Sockets API (WSA), later shortened to Winsock, is a technical specification that defines how Windows network software should access network services, especially TCP/IP; 2. This common protocol on the […]


Linux: How to fix the Shellshock vulnerability.

About the Shellshock vulnerability you can read here. Run this command:

If you see this:

The you have a Shellshock vulnerability, to fix use this:



Bash: Changing extension to multiple files

To change file extension from *.txt file to *.text file use this command into your shell:


JavaScript – geolocation.

This is a simple java script to take the geolocation and show it on webpage. The example start with a default HTML 5 page and the part from tags scripts get the geolocation and using innerHTML is show on webpage. To see the location then is need to use this: navigator.geolocation.getCurrentPosition.