Skip to content

Instantly share code, notes, and snippets.

View bmillemathias's full-sized avatar
💭
I may be slow to respond.

Baptiste Mille-Mathias bmillemathias

💭
I may be slow to respond.
View GitHub Profile
@bmillemathias
bmillemathias / main.go
Created October 16, 2024 17:00
sample golang program to get Scaleway realtime consumption
package main
import (
"fmt"
"log"
"net/http"
"os"
"time"
"github.com/prometheus/client_golang/prometheus"
@bmillemathias
bmillemathias / db_feeder_with_faker.py
Last active September 24, 2025 22:49
An example how to use Faker python library to create fake data and inject them in a mysql database
#!/usr/bin/env python
# an example how to use Faker to create fake data and inject them
# in a mysql database
import time
import os
import mysql.connector
from mysql.connector import Error
from faker import Faker