Skip to content

Instantly share code, notes, and snippets.

View fedir's full-sized avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
@fedir
fedir / gitlab-curl.csv
Created February 6, 2026 16:19
Gitlab API avec curl
Cas d'usage / Action Requête CURL
Lister tous les projets (visibles par vous) curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/projects"
Lister les projets d'un groupe curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/groups/<ID>/projects"
Lister incluant les sous-groupes curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/groups/<ID>/projects?include_subgroups=true"
Chercher un texte dans un projet (Code) curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/projects/<ID>/search?scope=blobs&search=<votre_texte>"
Trouver l'ID d'un groupe par son nom curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/groups?search=<nom_du_groupe>"
Vérifier validité Token / Utilisateur curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.company/api/v4/user"
@fedir
fedir / ceph_glossary.csv
Created February 6, 2026 16:17
Ceph Glossaire
Catégorie Terme (Français) Terme (Anglais) Définition Concise
Architecture RADOS RADOS Le cœur du stockage objet distribué de Ceph.
Architecture Nœud Ceph Ceph Node Unité hôte du cluster (serveur physique ou VM).
Architecture Algorithme CRUSH CRUSH Algorithme de placement des données sans table centrale.
Architecture Carte du Cluster Cluster Map Ensemble des cartes (MON, OSD, PG, MDS) décrivant l'état du cluster.
Démons OSD Ceph OSD Démon gérant un disque physique et la réplication des données.
Démons Moniteur Ceph Monitor (MON) Démon garant du quorum et de la cohérence de l'état du cluster.
Démons Gestionnaire Ceph Manager (MGR) Démon gérant le monitoring et les modules (ex: Dashboard).
Démons Serveur de Métadonnées MDS Démon gérant les métadonnées pour CephFS.
Interface Périphérique Bloc RBD Interface de stockage par blocs (équivalent SAN/LUN).
@fedir
fedir / README.md
Last active November 3, 2025 13:12
Google Cloud Vision API - PDF OCR to Markdown Script : Extracts text from PDF files and converts tables to Markdown format.

Google Cloud Vision PDF OCR to Markdown

A Python script that extracts text from PDF documents using Google Cloud Vision API and converts tables to Markdown format. Optimized for French documents with ~95% accuracy.

Features

  • High Accuracy OCR: Leverages Google Cloud Vision API for superior text recognition
  • 📊 Table Detection: Automatically detects and converts tables to Markdown format
  • 🇫🇷 Language Optimized: Configured for French documents (easily customizable)
  • 📄 Multi-page Support: Handles PDFs of any size
@fedir
fedir / README.md
Created November 3, 2025 13:06
Google Cloud Vision API - PDF OCR Script for French Documents : Extracts text from PDF files with high accuracy, preserving table structure.

Prerequisites

  1. Install required packages:
pip install google-cloud-vision google-cloud-storage
  1. Set up Google Cloud:
    • Create a Google Cloud project
  • Enable the Cloud Vision API
@fedir
fedir / rename_files.py
Last active September 7, 2025 16:36
rename_files.py - Rename files by removing accents and special chars, safe for UTF-8 (useful when sending files between different OS, ex.: Mac to Windows)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
rename_files.py - Rename files by removing accents and special chars, safe for UTF-8
Usage:
python3 rename_files.py <directory> [--dry-run]
Features:
- Normalizes accents (NFKD)
@fedir
fedir / ollama_open-webui.md
Created June 16, 2025 22:47 — forked from milank94/ollama_open-webui.md
Getting Started with Ollama + Open WebUI for Local LLM Deployment

Ollama + Open WebUI = Local LLM Server

Motivation

This guide helps you deploy a local Large Language Model (LLM) server on your Apple MacBook (Intel CPU or Apple Silicon (M-series)) with a user-friendly chat interface. By running LLMs locally, you ensure data privacy, improve reliability with offline capabilities, and leverage cutting-edge tools for efficient AI workflows

Prerequisites

  • macOS 11.0 or later (Intel, Apple Silicon (M-series))
  • At least 8 GB of RAM (16 GB recommended for optimal performance)
@fedir
fedir / generate_kubeconfig.sh
Created June 4, 2025 14:53
Simple Bash script to create a Kubeconfig file for kubectl for remote access to GKE from local PC // #GoogleCloud
#!/bin/bash
set -e
# Vérification des arguments
if [ $# -ne 2 ]; then
echo "Usage: $0 <nom_utilisateur> <cluster_endpoint>"
echo "Exemple: $0 user01 https://11.22.33.44"
exit 1
fi
@fedir
fedir / mdconv.html
Last active September 7, 2025 22:24
Simple one-page HTML/JS #Markdown converter using marked.js (handles Gemini's broken <br> tags). Demo : https://www.fedir.fr/tools/mdconv.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Markdown to Google Docs Converter</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.5/purify.min.js"></script>
<style>
* {
@fedir
fedir / qrcode.html
Last active May 9, 2025 05:17
Simple one-page HTML/JS QR Code Generator using qrcodejs // Demo: https://www.fedir.fr/tools/qrcode.html // Made with Claude Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code Generator</title>
<style>
body {
font-family: Arial, sans-serif;
@fedir
fedir / .gitignore
Last active February 8, 2026 22:05 — forked from Avinashachu007/.gitignore
.gitignore for Java, Maven, Spring Boot - Eclipse, Netbeans, IntelliJ IDEA, Visual Studio Code
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans