Compress and expand IPv6 in PHP

Compress and expand IPv6 in PHP

In this post, I will share with you a script I use to compress and expand IPv6 in PHP. To compress IPv6 address: function ipv6_compress($addr) { ...
Use ternary condition in Helm

Use ternary condition in Helm

In this post, I will show you how to use ternary condition in Helm to render inline values into the templates. Let say we have...
Convert Unix timestamp to time in Go and vice versa

Convert Unix timestamp to time in Go and vice versa

Today, I will you a useful tip to convert Unix timestamp to time in Go and vice versa. Unix timestamp to time To convert Unix timestamp...
Validate CIDR notation in PHP

Validate CIDR notation in PHP

Previously, I've shown you how to validate IP address. In this post, I will show you how to validate CIDR notation in PHP. If you...
Validate IP address in PHP

Validate IP address in PHP

Just another day for a PHP coding tip. In this post, I will show you how to validate IP address in PHP. To validate IP...