Lets assume we are creating 1 master node and 2 agent nodes
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
#!/bin/bash | |
set -e | |
grep -v "#Managed by DNS Updater" /etc/hosts | sudo tee /etc/hosts > /dev/null | |
DOMAINS=(www.tiktok.com sf16-website-login.neutral.ttwstatic.com im-api-sg.tiktok.com mcs-sg.tiktok.com mcs-va.tiktokv.com p16-sign.tiktokcdn-us.com webcast.tiktok.com mon.tiktokv.com p19-sign.tiktokcdn-us.com p16-sign-sg.tiktokcdn.com p16-sign-va.tiktokcdn.com p77-sign-va.tiktokcdn.com v16-webapp-prime.tiktok.com p16-sign-useast2a.tiktokcdn.com p16-sg.tiktokcdn.com vmweb-sg.byteoversea.com s20.tiktokcdn.com mssdk-sg.tiktok.com p16-sign-va.tiktokcdn.com pull-flv-l11-sg01.tiktokcdn.com pull-flv-l1-sg01.tiktokcdn.com) | |
for i in ${DOMAINS[@]}; do | |
ip=$(curl -s "https://dns.google/resolve?name=$i&type=A" --compressed | jq -r '.Answer[] | select(.type == 1) | .data' | head -n 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
import openai | |
import elevenlabs | |
# Uncomment the following lines to set the API keys | |
openai.api_key = "key_here" | |
elevenlabs.set_api_key("key_here") | |
def write(prompt: str): | |
for chunk in openai.ChatCompletion.create( | |
model="gpt-3.5-turbo-0301", |