Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
@=""
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
@AdrienVR
AdrienVR / ForceKillAppsOnShutdown.reg
Created May 2, 2021 09:31
Prevent Windows Shutdown from being blocked by any app or service
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillAppTimeout"="1"
"HungAppTimeout"="1000"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"WaitToKillServiceTimeout"="1"
"WaitToKillAppTimeout"="1"
public static object GetParent(this SerializedProperty prop)
{
var path = prop.propertyPath.Replace(".Array.data[", "[");
object obj = prop.serializedObject.targetObject;
var elements = path.Split('.');
foreach (var element in elements.Take(elements.Length - 1))
{
if (element.Contains("["))
{
var elementName = element.Substring(0, element.IndexOf("["));
@AdrienVR
AdrienVR / FixCtrlBackspace.ahk
Last active December 28, 2022 11:26 — forked from roryokane/FixCtrlBackspace.ahk
AutoHotkey script to fix Ctrl+Backspace (delete previous word) in File Explorer and Notepad
; how to write scripts: http://www.autohotkey.com/docs/
#NoEnv
#SingleInstance force
SendMode Input
#IfWinActive ahk_exe explorer.exe
^Backspace::
Send ^+{Left}{Backspace}
#IfWinActive ahk_exe ditto.exe
^Backspace::
@AdrienVR
AdrienVR / .gitconfig
Last active September 29, 2017 13:20
Git mergetool generates unwanted .orig files on conflicts
git config --global mergetool.keepBackup false