When start some windows app, node for ex. you can see error like: – listen EACCES: permission denied 0.0.0.0:5555 netsh int ipv4 show dynamicport tcp verified that the range trampled commonly-used ports netsh int ipv4 set dynamic tcp start=10000 num=20000 to reset it to something else (Change default port range)
Category Archives: Uncategorized
How to delete a git tag locally and remote
# delete local tag ‘12345’git tag -d 12345# delete remote tag ‘12345’ (eg, GitHub version too)git push origin :refs/tags/12345# alternative approachgit push –delete origin tagNamegit tag -d tagName
Disable beep sound in WSL terminal on Windows
To disable the beep in bash you need to uncomment (or add if not already there) the line set bell-style none in your /etc/inputrc file.Note: Since it is a protected file you need to be a privileged user to edit it (i.e. launch your text editor with something like sudo <editor> /etc/inputrc). To disable the beep also in vim you need to add set visualbell in your ~/.vimrc file. …
Continue reading “Disable beep sound in WSL terminal on Windows”
Compact (release disk space) from wsl vhd image
wsl –shutdown diskpart # open window Diskpart select vdisk file=”C:\WSL-Distros\…\ext4.vhdx” attach vdisk readonly compact vdisk detach vdisk exit this issue
PhpStorm (Idea) with Docker: BindException: Address already in use
Install WSL on non-C drive
Open Powershell: Run Set-Location DriveLetter: where DriveLetter is the drive where WSL will be installed Then create a directory for WSL with New-Item WSL -Type Directory Now set location there with Set-Location .\WSL Now download the appx package with Invoke-WebRequest -Uri appx_package_url -OutFile Linux.appx -UseBasicParsing Now we will unpack appx with Copy-Item .\Linux.appx .\Linux2.appx and then Rename-Item .\Linux2.appx -Newname “Linux2.zip” and then Expand-Archive .\Linux2.zip Now Get-Childitem -Filter *.exe and …
Share files from Windows 10 to Ubuntu
https://itectec.com/ubuntu/ubuntu-access-windows-10-shared-folder-from-ubuntu-18-04/
Clean windows installer orphaned files
For removing orphaned files from c:\windows\installer you can use PatchCleaner. There is two options: delete or move orphaned files to some directory.
*.lib from *.def
lib /def:some.def /out:some.lib or in x64 lib /def:some.def /machine:x64 /out:some.lib
Extract lib from dll on Windows
1. exports extract the functions and classes in *.dll by:$> dumpbin.exe /exports libsample.dll /out:libsample.def 2. function names edit libsample.def and remove everything except function names (keep C++ name mangling chars). then add EXPORTS as the first line. as: 3. make *.lib run this line depending on architecture:$> lib.exe /def:libsample.def /machine:arm /out:libsample.lib source