Skip to content

Instantly share code, notes, and snippets.

View dmringo's full-sized avatar

David Ringo dmringo

View GitHub Profile
@dmringo
dmringo / wsl2-network.ps1
Last active October 15, 2023 03:00 — forked from daehahn/wsl2-network.ps1
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
# modified by dmringo, Oct-14-2023
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
msys2 vs msys vs msysgit
MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin
Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows.
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation.
MinGW provides headers and libraries so that GCC (a compiler suite,
not just a "unix/linux compiler") can be built and used against the Windows C runtime.
@dmringo
dmringo / start-vsdevshell.ps1
Created December 16, 2020 19:57 — forked from oising/start-vsdevshell.ps1
Allow "Developer Powershell for VS 2019" environment to be bootstrapped within powershell core / pwsh
[cmdletbinding()]
param([switch]$Preview)
# vswhere will reliably locate visual studio installations
if (!(gcm vswhere)) {
# https://chocolatey.org/
if (gcm choco) {
choco install vswhere -y
}
else {