Skip to content

Instantly share code, notes, and snippets.

View Moinax's full-sized avatar
🏠
Working from home

Jérôme Poskin Moinax

🏠
Working from home
View GitHub Profile
@dkorobtsov
dkorobtsov / Add_WindowsDefender_Exclusions.ps1
Last active July 3, 2024 01:49
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.
@clarkbw
clarkbw / redux-performance-mark.js
Last active February 8, 2024 05:03
A User Timing middleware for redux to create performance markers for dispatched actions
const timing = store => next => action => {
performance.mark(`${action.type}_start`);
let result = next(action);
performance.mark(`${action.type}_end`);
performance.measure(
`${action.type}`,
`${action.type}_start`,
`${action.type}_end`
);
return result;
@Moinax
Moinax / activate xdebug remote phpstorm
Last active December 21, 2015 01:49
Provide a way to connect xdebug through remote server with PHPStorm
export XDEBUG_CONFIG="idekey=PHPSTORM"
@peteboere
peteboere / README.md
Created November 26, 2012 12:20
Avoid console errors in browsers that lack a console.