Skip to content

Instantly share code, notes, and snippets.

View hoonoh's full-sized avatar
💫
foo

Hoon Oh hoonoh

💫
foo
View GitHub Profile
@hoonoh
hoonoh / vscode_custom_css.css
Created December 22, 2021 06:36
vscode-custom-css config
/*
* `vscode-custom-css` config
*
* workspace folder text to white bold with extra charactors to clarify folder boundaries.
*/
div.monaco-tl-contents > div.rootfolder-icon {
color: #fff;
font-weight: bold;
}
div.monaco-tl-contents > div.rootfolder-icon::after {
@hoonoh
hoonoh / wsl2-portforward.ps1
Last active September 17, 2023 06:02
wsl2 port forwarding script
$remoteAddr = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteAddr -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteAddr = $matches[0];
echo $remoteAddr;
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@echo off
SET st2Path=C:\Program Files (etc)\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f