You can remove the entire Cisco anyconnect security files with Macbook apps like AppCleaner however you will find that the Anyconnect client still exists. Cisco Anyconnect client actually has a bash script to uninstall. sudo sh /opt/cisco/anyconnect/bin/vpn_uninstall.sh
The ubuntu server comes with ufw enabled by default. For Nginx to be able to accept incoming request, add this sudo ufw allow "Nginx http"
Read the rstr module documentation, there is an advice to use the SystemRandom to generate more secure random string.
The regex pattern to match valid ipv4 addressing, which will include broadcast address, and also network id and direct broadcast address. First octet, to be valid: 1. 25[0-5] matches between 250 and 255. 2. 2[0-4][0-9] matches between 200 and 249. 3. 1[0-9][0-9] matches between 100 and 199. 4. [1-9][0-9] matches between 10 and 99. 5. … Continue reading [python]Regex for matching ipv4 address
This is a code snippet to do search and replace
This is a modification of the code I posted previously for regex practice. I change the from split() to splitlines(), splitlines() will split which row of the string only when the end of string is detected hence will preserve the string that has whitespaces in between on each row. So here's the example: notice the … Continue reading [python]Modification of the regex code
. is a wildcard which occurs once. * is zero or more times, will also return more than one character between foo and bar. + is one or more times, will return also more than one character that is between foo and bar. the pattern "foo.bar" will present any single character between foo and bar. … Continue reading [python]Match all once or none