Friday, July 22, 2022
Monday, July 18, 2022
Sunday, July 17, 2022
CPP: Windows: Get logical drives
CPP: Windows: Get logical drives
Retrieves a bitmask representing the currently available disk drives.Notes:
- Tested using Visual Studio 2022 C++ Windows Console template
Reference(s):
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getlogicaldrives
Saturday, May 14, 2022
Disable IPv6 from the command line
Disable IPv6 from the command line
PS C:\>New-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters -Name DisabledComponents -Value 0xFF -PropertyType DWord
To verify that it was updated:
PS C:\>Get-Item HKLM:SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
Keywowrds: Windows IPv6 disable
Quick Tip: Disable Windows Firewall from the command line
Disable Windows Firewall from the command line
Using elevated command prompt, run:c:\> netsh advfirewall set allprofiles state off
Keywords: Windows Firewall netsh
Reference(s):
http://techgenix.com/quicklyturnonoffwindowsfirewallusingcommandline/
Sunday, May 08, 2022
Allow external clients to connect to minikube service
Allow external clients to connect to minikube service
Say you have a minikube cluster, you can use this minikube start tutorial as a reference, how can external applications or clients connect to it? You can run the following to expose balanced service (for example):$: kubectl port-forward --address 0.0.0.0 service/balanced 8080:8080
Refs:
https://stackoverflow.com/questions/64881583/how-to-access-external-service-using-the-minikube-hosts-public-ip-address
Keywords: Kubernetes k8s minikube port forward
Enable Copy/Paste using VMware Remote Console
Enable Copy/Paste using VMware Remote Console
VMware ESXi 6.5 disables copy/paste functionality by default for security reasons. If the security implications are acceptable, copy/paste funcationality can be enabled on per VM basis. It should be possible to change it at the host level but that will be for another post.Follow the following steps to allow copy/paste:
- Power down the VM
- Do Actions | Edit Settings
- In Edit Settings window, look for Edit Configuration button
- Add the following parameters
Key Value isolation.tools.copy.disable FALSE isolation.tools.paste.disable FALSE isolation.tools.setGUIOptions.enable TRUE
- Power up the VM
Refs:
https://kb.vmware.com/s/article/57122
Keyworks: VMware copy paste vmrc Remote Console
Subscribe to:
Posts (Atom)
CPP Quick Guide
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
-
Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates se...
-
Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...


