Tutorials
Golang : Convert IP version 6 address to integer or decimal number
Problem :
You have IP address version 6 in string format and you want to convert it into integer. How….... read more
Golang : Intercept and compare HTTP response code example
Problem :
You want to query a website and intercept the response code. You also want to compare the response….... read more
Golang : Issue HTTP commands to server and port example
Problem :
You want to issue or write HTTP command to a connection created by net.DialTCP()
function. How to do….... read more
Python : Convert IPv6 address to decimal and back to IPv6
Problem :
Need to convert IPv6 address to decimal number and convert back to IPv6. How to do that?
Solution….... read more
Golang : convert string or integer to big.Int type
Problem :
You have a big integer number in string format and you want to convert(cast) it to big.Int type.….... read more
Golang : Convert decimal number(integer) to IPv4 address
Problem :
You've read the previous tutorial on how to convert IPv4 address to decimal number and store….... read more
Golang : Convert IPv4 address to decimal number(base 10) or integer
Problem :
IP address in decimal is easier to search, filter or compare. For example, searching for IP address in….... read more
Findstr command the Grep equivalent for Windows
It has been a while since I use a computer with Windows Operating System. However, I have no choice today….... read more
Golang : Generate Interleaved 2 inch by 5 inch barcode
For this tutorial, we will learn how to generate interleaved and standard "2 of 5" barcodes in Golang with this….... read more
Get website traffic ranking with Similar Web or Alexa
Problem :
You need to get website ranking data from Alexa or Similar Web. What are the APIs to download….... read more
Golang : Search and extract certain XML data example
There are times when you want to just search for certain element in huge XML data set and extract the….... read more
Golang : Convert(cast) []byte to io.Reader type
Problem :
Need to convert XML data from http.Get()
to io.Reader type for xml.NewDecoder()
function to work . How to….... read more
Golang : Get Alexa ranking data example
Problem :
You want to get a website Alexa ranking and process the data in Golang.
Maybe for tracking….... read more
Golang : Intercept, inject and replay HTTP traffics from web server
Found this interesting tool written in Golang that will allow you to record and replay HTTP traffics from your website….... read more
Unix/Linux : secure copying between servers with SCP command examples
Have to write this down in case I forget again and hope you may find these SCP examples useful too.
….... read moreGolang : Go as a script or running go with shebang/hashbang style
One of the job scope of Unix/Linux system administrator is to write shell scripts to accomplish certain task. However, there….... read more
Golang : interface - when and where to use examples
Question :
New comer to Golang will need to learn about interface eventually. So what exactly is interface? Where and….... read more
Golang : Get curl -I or head data from URL example
Problem :
Need a way to make a HEAD request from URL and extract a few fields of header data….... read more