Это руководство поможет вам настроить VNC-сервер на Ubuntu 22.04 для удалённого доступа к графическому интерфейсу.
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
| cat > geo-check.sh << 'EOF' | |
| #!/bin/bash | |
| IP=$(curl -s ifconfig.me) | |
| echo "🔍 Проверка IP: $IP" | |
| echo "====== WHOIS ======" | |
| whois $IP | grep -iE 'country|origin|mnt|descr|netname' | |
| echo "" | |
| echo "====== ipinfo.io ======" |
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
| import requests | |
| import os | |
| TOKEN = "Your private key" | |
| API_URL = "https://api.github.com" | |
| HEADERS = { | |
| "Authorization": f"token {TOKEN}", | |
| "Accept": "application/vnd.github+json", | |
| } |
OlderNewer