Lunar Client API Documentation
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
sudo apt update && sudo apt upgrade -y && sudo systemctl enable --now apt-daily.timer && sudo systemctl enable --now apt-daily-upgrade.timer && sudo apt install unattended-upgrades && sudo unattended-upgrades --dry-run && reboot |
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 | |
from bs4 import BeautifulSoup | |
import os | |
from tqdm import tqdm | |
import concurrent.futures | |
urls = [ | |
"https://www.cia.gov/library/abbottabad-compound/index_images.html", | |
"https://www.cia.gov/library/abbottabad-compound/index_converted_documents.html", | |
"https://www.cia.gov/library/abbottabad-compound/index_audio.html", |
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
@echo off | |
setlocal enabledelayedexpansion | |
set "zoneid=zone_id" | |
set "bearer=bearer" | |
curl --silent --request GET "https://api.cloudflare.com/client/v4/zones/%zoneid%/dns_records?per_page=50000" --header "Authorization: Bearer %bearer%" --header "Content-Type: application/json" > dns_records.json | |
if not exist dns_records.json ( | |
echo Failed to fetch DNS records. |
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 os | |
import re | |
import requests | |
from urllib.parse import urljoin, urlparse | |
def download_file(url, directory_path): | |
filename = url.split("/")[-1] | |
filepath = os.path.join(directory_path, filename) | |
with open(filepath, "wb") as f: | |
f.write(requests.get(url).content) |
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
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ bookworm main" | tee /etc/apt/sources.list.d/cloudflare-client.list | |
apt update && apt install -y cloudflare-warp |