Skip to content

Instantly share code, notes, and snippets.

View pierre-emmanuelJ's full-sized avatar
🎧
Working from home

Pierre-Emmanuel Jacquier pierre-emmanuelJ

🎧
Working from home
View GitHub Profile
@pierre-emmanuelJ
pierre-emmanuelJ / exoscale-api-sign.bash
Last active July 2, 2025 08:43
A Bash script to generate and send authenticated HTTP requests to the Exoscale API v2 using HMAC-SHA256 signatures.
#!/bin/bash
if [ $# -lt 2 ] || [ $# -gt 3 ]; then
echo "Usage: $0 <method> <url-path> [expiration]"
echo "Example: $0 GET instance 1717430400"
echo "Parameters:"
echo " method - HTTP method (GET, POST, PUT, DELETE)"
echo " url-path - API path without /v2/ prefix"
echo " expiration - (optional) Unix epoch timestamp (default: now + 300s)"
exit 1
@pierre-emmanuelJ
pierre-emmanuelJ / RHCOS-Exoscale.md
Last active June 30, 2023 08:01
RedHat CoreOS (RHCOS) on Exoscale
@pierre-emmanuelJ
pierre-emmanuelJ / k8s-security-group.go
Last active May 4, 2020 15:34
A tool to create all security groups for a k8s cluster with Calico at Exoscale
package main
import (
"errors"
"fmt"
"os"
"log"
"github.com/exoscale/egoscale"