Skip to content

Instantly share code, notes, and snippets.

View mikamboo's full-sized avatar
🏠
Working from home

Michaël P.O. mikamboo

🏠
Working from home
View GitHub Profile
@mikamboo
mikamboo / README.md
Last active October 31, 2025 08:24
AWS Pricing API for Bedrock models pricing

Querying Amazon Bedrock Pricing

This quick guide shows how to use the AWS Pricing API via the AWS CLI to retrieve Amazon Bedrock on‑demand inference prices for Anthropic models (e.g., Claude). It includes a ready-to-run example that filters by provider, region, feature, and extracts usable price fields with jq.

Key points

  • Use the AWS Pricing API (aws pricing get-products) with --service-code "AmazonBedrock".
{
"components": [
{
"name": "nginx-ingress-controller",
"description": "Kubernetes Ingress Controller",
"currentVersion": "1.6.0",
"currentVersionLink": "https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.6.0",
"deploymentDate": "2023-03-01",
"releasesUrl": "https://github.com/kubernetes/ingress-nginx/releases"
},
@mikamboo
mikamboo / README.md
Created September 27, 2024 13:28
Backstage Installation Guide on a Kind Cluster

Backstage Installation Guide on a Kind Cluster

This guide will walk you through the installation of Backstage, an open source Internal Developer Platform, on a local Kubernetes cluster managed by Kind. We will use the official Helm chart to simplify the deployment and customize the installation using environment variables.

Prerequisites

  • Kind: Make sure Kind is installed and configured on your system.
  • Helm: Install Helm to manage charts.
  • kubectl: The Kubernetes client to interact with your cluster.
@mikamboo
mikamboo / beautifulsoup_example.py
Created August 31, 2022 14:47
Exemple utilisation BeatifulSoup Python
import urllib.request
from bs4 import BeautifulSoup
with urllib.request.urlopen("http://www.monkooli.com") as url:
html_page = url.read()
soup = BeautifulSoup(html_page, "html.parser")
print(soup.head.meta)
@mikamboo
mikamboo / kube-nodejs-echo-header.yaml
Created April 20, 2022 13:01
Kubectl create nodejs app to echo headers
apiVersion: v1
kind: ConfigMap
metadata:
name: nodejs-app
labels:
app: nodejs-app
data:
server.js: |
const http = require("http");
const host = '0.0.0.0';
@mikamboo
mikamboo / KEYSTORE.md
Last active December 9, 2021 00:33
Keystore Private key CSR

Create Private key stored in Keystore

If the .keystore does not exist i will be created

keytool -genkey -keystore .keystore -validity 300 \
-storepass myKeypass -keypass myKeypass -dname "CN=MyKey-Name" -alias MY-CERTKEY -storetype pkcs12

NOTE: For java version 11+, store password and key password must be equals.

@mikamboo
mikamboo / server.js
Created September 29, 2021 17:54
NodeJS : Handler POST body using native http createServer
const http = require("http");
const { parse } = require("querystring");
const hostname = "0.0.0.0";
const port = 3000;
const server = http.createServer((req, res) => {
if (req.method === "POST") {
let body = "";
req.on("data", (chunk) => {
// convert Buffer to string
@mikamboo
mikamboo / README.md
Last active October 4, 2021 17:34
DevOps : Firebase hosting deploy using Gitlab-CI + Doppler secret maneger

Mettre en place un pipeline CI/CD avec Gitlab pour déployer un application web sur Firebase en utilisant Doppler pour gérer les secrets.

Pré-requis

  • Un projet Firebase actif
  • Un prjet sous Gitlab
  • Un compte sur Doppler

Step 1 : Get Firebase token + init project

@mikamboo
mikamboo / README.md
Last active July 24, 2025 23:29
JS : Display image in browser console

Function to display image in js console

Source : https://stackoverflow.com/a/47177899

console.image = function(url, size = 100) {
  const image = new Image();
  image.src = url;
  image.onload = function() {
 var style = [
@mikamboo
mikamboo / .gitlab-ci.yml
Created January 29, 2021 09:09 — forked from angeloreale/.gitlab-ci.yml
Dockerizing a Node.js and MongoDB app with CI/CD Pipelines on Gitlab for staging and production environments.
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
STAGE_CONTAINER: dev
PROD_CONTAINER: prod
DEV_FOLDER: /path/to/repo/dev
PROD_FOLDER: /path/to/repo/prod