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
#!/bin/bash | |
curl -sL yabs.sh | bash | |
curl -sL nws.sh | bash |
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
0123456789nonexistent.com | |
0d.kebhana.mx | |
1337.abcvg.info | |
207.241.226.111 | |
207.241.231.226 | |
52.58.128.163 | |
[2a03 | |
[2a04:ac00:1 | |
[2a0f:e586:f:f: | |
amigacity.xyz |
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
#!/bin/bash | |
apt update | |
apt upgrade -y | |
apt full-upgrade -y | |
apt --purge autoremove | |
cp -v /etc/apt/sources.list /root/sources.list-backup.11.bullseye | |
tee /etc/apt/sources.list > /dev/null << EOF | |
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware |
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
#!/bin/bash | |
echo "Install CPU Power" | |
apt install linux-cpupower -y | |
echo "Get Detail CPU" | |
cpupower frequency-info | |
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | |
echo "Setup Systemd" |
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
#!/bin/bash | |
# Function to generate a random password | |
generate_random_password() { | |
tr -dc A-Za-z0-9 </dev/urandom | head -c 12 | |
} | |
# Prompt for username | |
read -p "Enter username: " USERNAME |
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
#!/bin/bash | |
echo "Install VSCode for Ubuntu or Debian" | |
echo "Ref: https://code.visualstudio.com/docs/setup/linux" | |
echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections | |
sudo apt-get install wget gpg -y | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null |
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
#!/bin/bash | |
# Set Timezone | |
timedatectl set-timezone "Asia/Jakarta" | |
# Update | |
apt-get update | |
apt-get upgrade -y | |
# Install missing deps |
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 json | |
import os | |
def updateRecord(target, cf_token, ip): | |
# Cloudflare Token | |
cf_api = "https://api.cloudflare.com/client/v4/" | |
# Cloudflare Headers |
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
#!/bin/bash | |
systemctl disable systemd-resolved | |
systemctl stop systemd-resolved | |
rm -rf /etc/resolv.conf | |
echo "nameserver 8.8.8.8" > /etc/resolv.conf | |
echo "nameserver 8.8.4.4" > /etc/resolv.conf | |
dig premiumfast.net | |
dig s3.ap-southeast-1.amazonaws.com |
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
#!/bin/bash | |
log_file="/var/log/pveproxy/access.log" | |
iptables_chain="INPUT" | |
iptables_action="-A" | |
iptables_command="/sbin/iptables" | |
iptables_log_prefix="[BLOCKED IP]" | |
# Regular expression pattern to match IP addresses and status codes in the log file | |
log_entry_pattern="([0-9]{1,3}\.){3}[0-9]{1,3}.* 200" |
NewerOlder