I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
| # -*- coding: utf-8 -*- | |
| import socket | |
| import os | |
| print("Connecting...") | |
| if os.path.exists("/tmp/python_unix_sockets_example"): | |
| client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
| client.connect("/tmp/python_unix_sockets_example") | |
| print("Ready.") | |
| print("Ctrl-C to quit.") |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>DNSSettings</key> | |
| <dict> | |
| <key>DNSProtocol</key> |