Usefull scripts I found or I do

Reduce the size of image file storage? WebP is here!

  • Post author:
  • Post category:Scripting
  • Reading time:7 mins read

Hi! Today I'm going to talk to you about images in WebP format. Why? Because I recently had to migrate a server with 100 GB of image files (jpg and png). This is a significant S3 storage cost, it takes a monstrous amount of time to make backups, and for some large files, it destroys the performance of your websites or applications. By the way, the loading time of a web page is taken into account by Google, and a 50 MB image will penalize your SEO. I looked for a way to reduce the size of all this, and I'll explain everything.

Continue ReadingReduce the size of image file storage? WebP is here!

Alive: How to test a port on a remote host

  • Post author:
  • Post category:Scripting
  • Reading time:10 mins read

When creating a VM and opening a port doesn’t work, it's often necessary to perform multiple tedious manual checks (network, firewall, fail2ban, etc.). Netcat (nc) greatly simplifies this process by allowing you to test the accessibility of a port on a remote host. I’m offering a bash script called "Alive" that automates these tests in a loop, with immediate visual feedback on the connection status. This script is useful for monitoring ports during service installations, reboots, and more.

Continue ReadingAlive: How to test a port on a remote host