Skip to content

Instantly share code, notes, and snippets.

View cmaneu's full-sized avatar

Christopher MANEU cmaneu

View GitHub Profile
@cmaneu
cmaneu / french.ps1
Created November 5, 2026 09:40
Windows- French keyboard
$list = Get-WinUserLanguageList
# Find French (France) in the list, or add it if it's missing
$fr = $list | Where-Object LanguageTag -eq 'fr-FR'
if (-not $fr) {
$list.Add('fr-FR')
$fr = $list | Where-Object LanguageTag -eq 'fr-FR'
}
# Replace whatever keyboard it came with by the legacy AZERTY layout
@cmaneu
cmaneu / scope-setup.sh
Last active September 30, 2026 14:15
SCOPE Windows Setup
#!/usr/bin/env bash
# =============================================================================
# setup-linux-prereqs.sh — check (and optionally install) everything needed to
# develop Scope on a Linux machine with Docker.
#
# Installs / verifies:
# - git, curl, ca-certificates, openssl, tar, unzip
# - libnss3-tools (required by mkcert on Linux)
# - shasum (libdigest-sha-perl) -> used by scripts/worktree-env.sh
# - Node.js 22 (matches CI)
@cmaneu
cmaneu / Brewfile
Last active May 3, 2026 14:42
Mac setup
brew "git"
brew "git-lfs"
brew "gh"
brew "powershell"
brew "ollama"
brew "llmfit"
cask "docker-desktop"
cask "visual-studio-code"
cask "visual-studio-code@insiders"
@cmaneu
cmaneu / detect-compromised-axios.ps1
Last active March 31, 2026 08:16
detect-compromised-axios.ps1
param(
[string]$Directory = "."
)
$ErrorActionPreference = "Stop"
$repos = Get-ChildItem -Path $Directory -Directory
foreach ($repo in $repos) {
$packageJson = Join-Path $repo.FullName "package.json"
@cmaneu
cmaneu / readme.md
Last active June 5, 2025 11:52
SIMPLON

Travaux Pratiques — Microsoft Fabric

École IA simplon — Juin 2025

Bienvenue dans cet atelier pratique autour de Microsoft Fabric et des outils de la plateforme Azure.

Vous allez pouvoir suivre un ensemble de modules interactifs sur Microsoft Learn, directement depuis l’environnement qui vous a été attribué.


@cmaneu
cmaneu / App.jsx
Created February 13, 2025 13:59
React - Long server answer example
import React, { useState, useEffect } from 'react';
// FakeFetch function to simulate a fetch request with a fixed delay of 10 seconds
const FakeFetch = url => {
return new Promise((resolve, reject) => {
const delay = Math.random() < 0.5 ? 0 : 10000; // Either 0ms or 10000ms (10 seconds)
console.log(`FakeFetch delay: ${delay}ms`);
setTimeout(() => {
// Simulate a successful response with dummy data
@cmaneu
cmaneu / devbox.yaml
Last active November 3, 2023 09:42
test devbox
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
assertions:
- resource: Microsoft.Windows.Developer/OsVersion
directives:
description: Verify min OS version requirement
allowPrerelease: true
settings:
MinVersion: '10.0.22000'
resources:
@cmaneu
cmaneu / content.md
Last active May 20, 2022 14:03
AFUP Tours - DevContainers Meetup
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.