Skip to content

Instantly share code, notes, and snippets.

View dkorobtsov's full-sized avatar
🎯
Focusing

Dmitri Korobtsov dkorobtsov

🎯
Focusing
View GitHub Profile
@dkorobtsov
dkorobtsov / Add_WindowsDefender_Exclusions.ps1
Last active April 24, 2024 08:22
PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
# PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
#
# For context please read this thread:
# https://github.com/microsoft/WSL/issues/8995
#
# How to use?
# - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it.
# - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1.
# - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator".
# - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file.
@dkorobtsov
dkorobtsov / SelenideLoggerIssueTest1.java
Last active February 1, 2018 21:10
SelenideLogger - Reproducing NPE
package tests.unit.selenideresearch;
import com.codeborne.selenide.testng.GlobalTextReport;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
@Listeners({GlobalTextReport.class, TestListener.class})
public class SelenideLoggerIssueTest1 {
@Test