Blog

An AWS pricing website

In 2023 I created aws.frankcontrepois.com a website that generate graphs from AWS pricing data. The data is automatically updated every month. It was also my first time using ChatGPT to create CloudFormation scripts. note: the site is not encrypted because all the data is public and is a little greener by not requiring CPU cycles for useless encryption. Read more...

An AWS pricing investigation

In the last two years I have been playing with AWS pricing data, trying to answer questions like: What is the price of the Windows License on AWS? link What is the price of SQL server licenses on AWS? link Are there better price performance configurations to buy SQL server Licenses? link Don’t use 1 vcpu instance What is the price of RedHat licenses on AWS? link Are there better price performance configurations to buy RHEL ? Read more...

How to exclude running Google Analytics when running Hugo server

From: How to Exclude Google Analytics When Running Under Hugo Local Server from 2018 with love :) If you are not using a theme that already excludes Google Analytics, then you should use the following piece of hugo code. In my case, I added this code into layouts/partials/custom-header.html {{- if not .Site.IsServer -}} {{ template "_internal/google_analytics.html" . }} {{- end -}} Read more...

How to get a random number in bash

Use the $RANDOM. $RANDOM returns a number between 0 and 32767. To get a random number between 0 and 50 you can use $ echo $[RANDOM%50] $ # or $ echo $((RANDOM%50)) To get a random number between 1 and 50 you can use $ echo $[RANDOM%50+1] $ # or $ echo $((RANDOM%50+1)) Read more...