Skip to content

Instantly share code, notes, and snippets.

View djibe's full-sized avatar

JB djibe

View GitHub Profile
@djibe
djibe / windows11-24H2-tpm-secureboot.md
Last active March 26, 2025 18:17
Install Windows 11 24H2 without TPM and Secure Boot requirements

Install Windows 11 24H2 without TPM and Secure Boot requirements

  1. Create a Windows 11 ISO with Microsoft's Media Creation Tool
  2. Install Setup Patchium and run it (or try latest Rufus version directly and patch from there)
  3. Home tab: Select ISO, wait during processing
  4. Go to Install > Uncheck Remove upgrade and Check Disable Windows 11 compatibility restrictions, click Apply
  5. Optional: To install without a Microsoft account, go to Install OOBE tab. Click Integrate lumOOBE. This will break sysinstall.
  6. Click on Create ISO button
  7. Use Rufus or Ventoy (prefered) to run installation from a USB drive
@djibe
djibe / modern-html.md
Last active September 5, 2023 10:14
Modern HTML

Modern HTML

Images

<picture>
  <source sizes="(max-width: 608px) 100vw, 680px"
    srcset="/img/photo-1920w.avif 1920w,
      /img/photo-1280w.avif 1280w,
 /img/photo-640w.avif 640w,
@djibe
djibe / ubuntu-windows11-hyperv.md
Created June 1, 2023 08:35
Ubuntu for Windows 11 with Hyper-V

Ubuntu for Windows 11 with Hyper-V

Tutorial to setup Windows 11 and use Ubuntu in a virtual machine (VM).

Requirements

  • Windows 11 Pro
  • Virtualization enabled
    • Go to Task Manager > Performance > CPU. Make sure Virtualization is Enabled.
  • If not, you must enable Virtualization in your UEFI
@djibe
djibe / hugo-tips.md
Last active July 1, 2024 17:03
Hugo static site good tips

Good tips for Hugo Static site generator

Conditionals

Range in a range of set

List 9 files published after the last 6 within the recommandations section.

{{ range first 9 ( after 6 (where site.RegularPages.ByPublishDate.Reverse "Section" "recommandations" )) }}
@djibe
djibe / wsl-windows11.md
Last active March 12, 2025 20:56
Install WSL2 in Windows 11

WSL 2 (Windows Subsystem for Linux v2) for Windows 11 installation

Install WSL components

Check Windows Update is active.

Open Start menu: search for exploit > click on "Exploit protection" result.

Go to Program settings tab. Search for C:\WINDOWS\System32\vmcompute.exe and vmwp.exe.

@djibe
djibe / nodejs-list-files-and-rename.md
Created April 11, 2023 07:24
NodeJS: list files in subfolders with special extension and export a list of renamed files
const fs = require('fs');
const path = require('path');

const directoryPath = path.join(__dirname, './content/recommandations');
const exportPath = path.join(__dirname, './data/application');

// Create the folder directory if it doesn't exist
if (!fs.existsSync(exportPath)) {
 fs.mkdirSync(exportPath);
@djibe
djibe / urql-client-demo.md
Last active February 7, 2023 19:05
Simplest URQL client demo
// Requires Node 18+, plays witk PokeApi GraphQL beta

import { createClient } from '@urql/core';

const client = createClient({
  url: 'https://beta.pokeapi.co/graphql/v1beta'
});

const query = `
@djibe
djibe / css-memo.md
Last active November 4, 2024 17:41
State of CSS 2024 Memo

State of CSS 2024 Memo

Reset CSS

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
@djibe
djibe / Webmaster tools site migration
Last active January 21, 2022 09:09
Informations from search engines for moving/transfering a site to a new URL
## Google
## Microsoft Bing
<https://blogs.bing.com/webmaster/december-2020/Website-Migration-with-Bing>
Site Move tool Has vanished, GuavaRank promotes:
- Complete the change of address steps in Google Search Console
- Add and verify the new domain in Bing
@djibe
djibe / windows10-command-tweaks.md
Last active April 1, 2025 17:20
Windows 10 Command Tweaks

Windows 10 and 11 optimizations

Minimal script

:: Check for updates
%windir%\system32\usoclient ScanInstallWait
:: Set Powermode
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61