This file contains 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
@echo off | |
setlocal | |
rem arbitrary max directories to show | |
set MAX=32 | |
setarray directories[%MAX] | |
setarray searchResults[%MAX] | |
rem used to set value that conveniently escapes setlocal | |
setarray __CD[1] |
This file contains 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
#!/bin/bash | |
SCRIPT=$(basename "$0") | |
# options | |
parents_only= | |
all_users= | |
verbose= | |
grep_expr='/.+?vscode-server.*?[[:xdigit:]]{32,64}/bin/' | |
# working state |
This file contains 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
// With paranoid eslint type specs. | |
// | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
type ReactMixinMasterMaker<C> = new (...args: any[]) => C; // ES2015 mixin 'pattern' constructor form | |
// We are making a 'ReactWrapper' class that extends a constructor that produces type T | |
// where T implements at least the signature of React.Component. The 'type' _ReactWrapper | |
// would normally be left off as it is very cumbersome to produce if strict type definitions are not required. | |
function ReactWrapper<T extends ReactMixinMasterMaker<React.Component>>(Base: T): typeof _ReactWrapper { | |
// The actual 'Wrapper' class we want to create, with a base class Base of type T |
This file contains 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
Functionality is now on the iTerm2 site: | |
https://iterm2.com/utilities/it2check | |