Skip to content

Instantly share code, notes, and snippets.

View djibe's full-sized avatar

JB djibe

View GitHub Profile
@djibe
djibe / winget-package-create.md
Created February 2, 2024 10:52
Create a winget package
View winget-package-create.md

Create a winget package

You must be the owner of the package and have a valid Github account.

Run commands:

winget install wingetcreate
winget create new
@djibe
djibe / windows11-23H2-tpm-secureboot.md
Last active January 28, 2024 21:01
Install Windows 11 23H2 without TPM and Secure Boot requirements
View windows11-23H2-tpm-secureboot.md

Not working

1) Install Windows 11 with the Command

  1. Create an ISO with Microsoft's Media Creation Tool
  2. Mount ISO (right click ISO > Mount), note the Drive letter
  3. Open a Windows command (WIN + R and then enter cmd and Enter)
  4. Enter: E: // Or the letter of your ISO Drive
  5. Then setup.exe /product server and confirm with Enter.
@djibe
djibe / modern-html.md
Last active September 5, 2023 10:14
Modern HTML
View modern-html.md

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
View ubuntu-windows11-hyperv.md

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 January 4, 2024 08:55
Hugo static site good tips
View hugo-tips.md

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 September 1, 2023 08:03
Install WSL2 in Windows 11
View wsl-windows11.md

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
View nodejs-list-files-and-rename.md
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
View urql-client-demo.md
// 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 January 28, 2024 21:01
State of CSS 2023 Memo
View css-memo.md

State of CSS 2023 Memo

Reset CSS

/***
    The new CSS reset - version 1.11 (last updated 20.9.2023)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/
@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
View Webmaster tools site migration
## 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