VI Editor Cheat Sheat

VI Editor Cheat Sheet


Running OpenVPN in a Windows using Command Prompt

On Windows, you can start OpenVPN by right clicking on an OpenVPN configuration file (.ovpn file) and selecting "Start OpenVPN on this config file". Once running in this fashion, several keyboard commands are available: F1 -- Conditional restart (doesn't close/reopen TAP adapter) F2 -- Show connection statistics F3 -- Hard restart F4 -- Exit More: https://openvpn.net/index.php/open-source/documentation/howto.html


Finding external IP using external services

curl icanhazip.com or curl ipecho.net or $ dig +short myip.opendns.com @resolver1.opendns.com How do I store my IP address in a shell variable? The syntax is: myip="$(dig +short myip.opendns.com @resolver1.opendns.com)" echo "My WAN/Public IP address: ${myip}" Sample outputs: My WAN/Public IP address: Refer: https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux/