This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| how to find windows reserved ports on a system | |
| Two commands cover it: | |
| 1. Excluded port ranges (Hyper-V/Docker reservations — the ones that caused your issue): | |
| netsh int ipv4 show excludedportrange protocol=tcp | |
| netsh int ipv4 show excludedportrange protocol=udp | |
| 2. Currently active listeners (ports already bound by a running process): | |
| netstat -ano | Sort-Object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wsl --shutdown | |
| # make sure everything is stopped | |
| wsl --list --verbose | |
| #Verify everything is stopped by: | |
| >> wsl.exe --list --verbose | |
| #Then start diskpart: | |
| >> diskpart | |
| #and inside diskpart type: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN | |
| FOR cur_rec IN (SELECT object_name, object_type | |
| FROM user_objects | |
| WHERE object_type IN | |
| ('TABLE', | |
| 'VIEW', | |
| 'PACKAGE', | |
| 'PROCEDURE', | |
| 'FUNCTION', | |
| 'SEQUENCE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Find all Docker Images with a prefix | |
| docker image ls force-iiot/* | |
| #Delete all images with a prefix name | |
| docker image rmi $(docker image ls force-iiot/* --format "{{.ID}}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Find count of changes done in last 24 hours. | |
| git rev-list --count --since="24 hours ago" origin/develop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Upgrade node version with choco | |
| choco upgrade nodejs.install --version=21.5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Follow these steps to fix it: | |
| Stop Docker | |
| Uninstall it from "Add Programs/Remove" | |
| Remove Docker folder from AppData/Roaming | |
| Remove docker folder from ProgramFiles | |
| Remove docker folder from ProgramData | |
| Restart machine | |
| Installed Docker Desktop again |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # powershell elevated privilages | |
| minikube stop | |
| minikube delete | |
| # Delete the .minikube and .kube directories under user | |
| C:\users\{user}\.minikube (rm $HOME/.minikube) | |
| C:\users\{user}\.kube (rm $HOME/.kube) | |
| # If one has installed it via chocolatey | |
| minikube stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; |
NewerOlder