Disable smart dashs or smart quotes on Mac








# Disable just smart dashes
defaults write -g NSAutomaticDashSubstitutionEnabled 0

# Disable just smart quotes
defaults write -g NSAutomaticQuoteSubstitutionEnabled 0

# To re-enable, set either back to 1.



How to test remote port on Windows 10








  • Start PowerShell: Open command prompt and type
    powershell
  • Type the following command in PowerShell:
    Test-NetConnection -ComputerName RemoteHost -Port PortNumber
    For example:
    Test-NetConnection -ComputerName 192.168.20.100 -Port 445



stop a fork bomb








Could not ssh to the VM, so try logging into it via web console, then see the message below:
bash fork retry: no child processes
It's cause by fork bomb.
To stop it,
killall -STOP -u user
killall -KILL -u user

see also