This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ============================================================================= | |
| # Docker installation script for Debian/Ubuntu/CentOS/Fedora and derivatives. | |
| # Features: multi-distro support, wget fallback for restricted networks, | |
| # Iranian registry mirrors, log rotation, live-restore, and docker group setup. | |
| # Usage: sudo bash install-docker.sh | |
| # ============================================================================= | |
| set -euo pipefail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================== | |
| # Install & Fix Widgets | |
| # ============================== | |
| !pip install -q ipywidgets requests yt-dlp | |
| from google.colab import output | |
| output.enable_custom_widget_manager() | |
| # ============================== | |
| # Mount Drive | |
| # ============================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| async fetch(request) { | |
| const url = new URL(request.url); | |
| const path = url.pathname.replace(/^\/+/, ""); | |
| const parts = path.split("/"); | |
| if (parts.length < 4) { | |
| return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 }); | |
| } | |
| const [owner, repo, branch, ...filePathParts] = parts; | |
| const filePath = filePathParts.join("/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 92.243.74.0/24 | |
| 185.148.106.0/24 | |
| 77.232.142.0/24 | |
| 194.76.18.0/24 | |
| 31.43.179.0/24 | |
| 194.59.5.0/24 | |
| 45.80.111.0/24 | |
| 45.135.235.0/24 | |
| 38.180.154.0/24 | |
| 13.36.140.0/24 |