Skip to content

Instantly share code, notes, and snippets.

View hkboujrida's full-sized avatar

Haithem BOUJRIDA hkboujrida

View GitHub Profile
@hkboujrida
hkboujrida / As400
Last active December 17, 2025 13:45
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
# Mimir Compactor - Paramètres Helm Chart
## Introduction
Le **compactor** fusionne et optimise les blocs TSDB stockés dans l'object storage pour réduire les coûts et améliorer les performances de requêtes.
---
## Paramètres de déploiement Kubernetes
{
"Name": "Automation Jumpbox Manager",
"IsCustom": true,
"Description": "Allows an Automation Account to start, stop, and assess patches for VMs across a tenant.",
"Actions": [
"Microsoft.Resources/subscriptions/read",
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/deallocate/action",
"Microsoft.Compute/virtualMachines/assessPatches/action"
curl -X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_DOCUMENT_INTELLIGENCE_SUBSCRIPTION_KEY" \
-H "Content-Type: multipart/form-data" \
-F "file=@c:/data/example.pdf" \
"YOUR_DOCUMENT_INTELLIGENCE_ENDPOINT/documentintelligence/rest/v1.0-preview/custom/models/YOUR_MODEL_GUID/analyze"
param (
[Parameter(Mandatory = $true)]
[string]$Organization,
[Parameter(Mandatory = $true)]
[string]$Project,
[Parameter(Mandatory = $true)]
[string]$ClientId,
# read a json local file from local disk and extract the build information
import json
import requests
json_url = 'http://localhost:8080/v1/rules'
# load json form url and extract the build information
json_file = requests.get(json_url).json()
# json_file = 'test.json'
# get base adress from json_url
https://583c-77-201-81-191.ngrok-free.app/dashboards
cluster:
name: my-cluster
externalServices:
prometheus:
host: http://mimir-nginx.observability.svc:80
# queryEndpoint: /api/v1/push
writeEndpoint: /api/v1/push
authMode: none
tenantId: "1"
# Powershell script to download and install grafana alloy in silent mode
# https://github.com/grafana/alloy/releases/download/v1.1.1/alloy-installer-windows-amd64.exe.zip
# Define the URL of the alloy installer
$url = "https://github.com/grafana/alloy/releases/download/v1.1.1/alloy-installer-windows-amd64.exe.zip"
# Define the path where the installer will be saved
$installerPath = "$env:TEMP\alloy-installer-windows-amd64.exe.zip"
# Download the installer
Invoke-WebRequest -Uri $url -OutFile $installerPath
docker run -it \
--name pytorch \
--network=host \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--device=/dev/kfd \
--device=/dev/dri \
--group-add video \
--ipc=host \
--shm-size 8G \