This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run as admin | |
| # install subinacl: https://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi | |
| $subinacl_path="C:\Program Files (x86)\Windows Resource Kits\Tools\subinacl.exe" | |
| $cmd_path = "HKEY_CLASSES_ROOT\Directory\shell\cmd" | |
| $bg_cmd_path = "HKEY_CLASSES_ROOT\Directory\Background\shell\cmd" | |
| $pwsh_path = "HKEY_CLASSES_ROOT\Directory\shell\Powershell" | |
| $bg_pwsh_path = "HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-16"?> | |
| <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
| <RegistrationInfo> | |
| <Description>Scheduled maintenance</Description> | |
| <URI>\010</URI> | |
| </RegistrationInfo> | |
| <Triggers> | |
| <CalendarTrigger> | |
| <StartBoundary>2018-05-10T13:00:08</StartBoundary> | |
| <Enabled>true</Enabled> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { "key": "ctrl+w", "command": "-workbench.action.closeWindow", "when": "!editorIsOpen" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifdef _MSC_VER // only supports MS | |
| #define TODO_STRINGIFY2(x) #x | |
| #define TODO_STRINGIFY(x) TODO_STRINGIFY2(x) | |
| #define OUTMSG_LINE_INFO "["__FILE__"]"__FUNCTION__"::(" TODO_STRINGIFY(__LINE__) ")" | |
| #define OUT_MSG(PFX, msg) __pragma(message( PFX" > "##OUTMSG_LINE_INFO ##" | " msg)) | |
| #define TODO(msg) OUT_MSG("TODO", msg) | |
| #define FIX(msg) OUT_MSG("FIX", msg) | |
| // add more here... |