Skip to content

Instantly share code, notes, and snippets.

View micheldiemer's full-sized avatar

Michel Diemer micheldiemer

  • Formateur
  • Strasbourg
View GitHub Profile
@micheldiemer
micheldiemer / wsl_hyperv_switch.md
Created April 18, 2024 23:48
WSL : adresse IP statique et switch Hyper-V avec WSLAttachSwitch

WSL : adresse IP statique et switch Hyper-V avec WSLAttachSwitch

Description textuelle

  1. Créer un switch dans Hyper-V, par exempke "VirtualSwitch"
  2. Ajuster les règles du pare-feu de WSL
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}'
@micheldiemer
micheldiemer / php.ini
Last active October 28, 2023 13:10
php.ini avec quelques optimisations : langue française, gestion des erreurs, etc.
# Getion des erreurs
error_reporting=E_ALL
short_open_tag=Off
display_errors=On
display_startup_errors=On
html_errors=On
# Gestion des téléchargements
realpath_cache_size=6M
upload_max_filesize=1G