File: proxy_server.py
Search for:
# Parse headers
Example:
# Parse headers
headers = {}| /* Chat messages */ | |
| [data-message-author-role="user"], | |
| [data-message-author-role="assistant"] { | |
| direction: rtl; | |
| text-align: right; | |
| } | |
| /* Message input */ | |
| #prompt-textarea { | |
| direction: rtl; |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Dynamic PHP Proxy | |
| * | |
| * Usage: | |
| * /simple-proxy.php?link=https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1 | |
| */ |
| # Install | |
| !pip install -q ipywidgets requests | |
| from google.colab import output | |
| output.enable_custom_widget_manager() | |
| # Mount | |
| from google.colab import drive | |
| drive.mount('/content/drive') | |
| # Imports |
File: proxy_server.py
Search for:
# Parse headers
Example:
# Parse headers
headers = {}| # Update system packages | |
| sudo apt update | |
| # Install autossh for persistent SSH tunnels | |
| sudo apt install autossh | |
| # Generate SSH key (ed25519) | |
| ssh-keygen -t ed25519 | |
| # Copy SSH key to remote server (port 9011) |