This file contains 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 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 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
# | |
# Husaria killswitch | |
# Schema: <GameFile>==<KillSwitch>==<BootstrapperVersion> | |
# | |
GameFile.exe==false==3.0.0.1 |
This file contains 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 |
This file contains 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 | |
:: set sequence | |
mode 160,40 | |
set ver=2.0.0 | |
setlocal | |
call :setESC | |
:: issue fix due to active directory temp folder && portable windows user issue. userprofile/temp >> script location | |
cd %~dp0 | |
title ez18 - Easy non-admin and lightweight minecraft launcher/downloader toolkit [%ver%] @ Running at %~dp0 |