Skip to content

Instantly share code, notes, and snippets.

View RangHo's full-sized avatar
completely lost

Juhun Lee RangHo

completely lost
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rangho on github.
  • I am rangho (https://keybase.io/rangho) on keybase.
  • I have a public key ASCNCHdNynYEDESylX9YcZDvwEUZ60QAjwlPi2oyNFPhFQo

To claim this, I am signing this object:

@RangHo
RangHo / hyper-v-at-home.bat
Last active May 15, 2023 09:49
Force enable Hyper-V features on Windows 10/11 Home editions.
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /Online /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /LimitAccess /All
pause
@RangHo
RangHo / .clang-format
Created April 17, 2023 09:52
My `clang-format` configuration file
---
BasedOnStyle: WebKit
AlignAfterOpenBracket: BlockIndent
AlignTrailingComments: true
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 100
NamespaceIndentation: None
ReflowComments: true
SortIncludes: true
@RangHo
RangHo / sandbox-at-home.bat
Created May 15, 2023 09:53
Force enable Windows Sandbox features on Windows 10/11 Home editions.
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Containers*.mum >sandbox.txt
for /f %%i in ('findstr /i . sandbox.txt 2^>nul') do dism /Online /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
del sandbox.txt
dism /Online /Enable-Feature /FeatureName:Containers-DisposableClientVM /LimitAccess /All
pause
@RangHo
RangHo / git-commit-template
Last active October 12, 2025 00:45
Commit message template that conforms to the Conventional Commits standard. (See also: https://github.com/RangHo/dotfiles/tree/main/git)
# <type>(<scope>)!: <description> (72 characters maximum)
# |<--- preferably using up to 50 characters --->|<------------------->|
# Optional <body>
# |<------------- try limiting to 72 characters per line ------------->|
# Optional <footer>
# ----- END COMMIT MESSAGE -----
#
@RangHo
RangHo / color-scheme-toggle.svelte
Created October 7, 2025 12:02
Switch-like color scheme toggle component written in Svelte 5.
<script>
import { getColorScheme } from "$lib/color-scheme.svelte";
let scheme = getColorScheme();
</script>
<div>
<input id="light" type="checkbox" bind:checked={scheme.isLight} />
<label for="light">Toggle light or dark mode</label>
</div>