Skip to content

Instantly share code, notes, and snippets.

View glekner's full-sized avatar

Gilad Lekner glekner

  • Wiz
  • Tel Aviv
View GitHub Profile
# Start SSH Service.
wsl sudo service ssh start
# 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") {
@daehahn
daehahn / wsl2-network.ps1
Last active January 18, 2025 17:43
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;
}
@glekner
glekner / cnv-native.md
Last active January 28, 2020 12:15
OKD + CNV w/Native K8s

Openshift Console + CNV w/Native K8s

Motive

Running Openshift Console along side a native local K8s is really nice and fast! Very useful for developers looking to test and create new components, and for users looking to take advantage of the console UI with their own cluster. There are a couple things that are missing: Metrics and Templates (Kubernetes doesn't support Templates kind, and there is no Prometheus)

Prerequisites

  1. A local K8s cluster (Minikube, Docker Desktop etc..)
  2. Openshift Console