Skip to content

Instantly share code, notes, and snippets.

@daehahn
daehahn / wsl2-network.ps1
Last active April 29, 2024 08:27
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@jamezpolley
jamezpolley / .vimrc
Created May 4, 2011 01:56
my .vimrc
" Things that need no explanation
set nocompatible
syntax on
set background=dark
" Tweaks to help mousiness work in normal vim inside an xterm.
set mouse=a
set ttymouse=xterm2
" Attempt to get sane indenting: