LinkedInTwitterFacebook

Tag Archives: scripting

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:

Share

Bash: Changing extension to multiple files

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

Share

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.

Share

JavaScript – toggle button example.

Is a simple example about toggle button. You need to start with input button and then get the state of this

Then add the type and id and style. You can remove the text-indent: -9999px; and Toggle button if you don’t want to see text to this toggle button. Let’s see the full source […]

Share

Using FontForge application – part 001.

FontForge requires an X server to be running so it can display its user interface. This distribution happens to use VcXsrv, which can allow for remote connections – since FontForge doesn’t use (or require) that, it is safe to keep blocking vcxsrv.exe. – just check Private networks, such as my home or work network. About […]

Share