sudo nano /usr/local/bin/namingo-backup.sh
sudo chmod +x /usr/local/bin/namingo-backup.sh
sudo /usr/local/bin/namingo-backup.sh
sudo crontab -e
Add this line:
sudo nano /usr/local/bin/namingo-backup.sh
sudo chmod +x /usr/local/bin/namingo-backup.sh
sudo /usr/local/bin/namingo-backup.sh
sudo crontab -e
Add this line:
https://learn.microsoft.com/en-us/sysinternals/downloads/whois
In powershell:
# Create a tools directory in user's AppData folder
$toolsDir = "$env:LOCALAPPDATA\SysInternalTools"
New-Item -ItemType Directory -Path $toolsDir -Force| import re | |
| from typing import List, Tuple | |
| def parse_line(line: str) -> Tuple[List[str], str]: | |
| line = line.strip() | |
| if not line or line.startswith('//'): | |
| return ([], line) | |
| domain = line.lstrip('!').lstrip('*.') | |
| import datetime | |
| import sys | |
| import os | |
| import subprocess | |
| import re | |
| import webbrowser | |
| from typing import List | |
| def is_valid_domain(domain: str) -> bool: | |
| regex = re.compile( |
| [Interface] | |
| PrivateKey = EXAMPLE | |
| Address = EXAMPLE | |
| DNS = EXAMPLE | |
| MTU = EXAMPLE | |
| [Peer] | |
| PublicKey = EXAMPLE | |
| AllowedIPs = 0.0.0.0/2, 64.0.0.0/3, 96.0.0.0/6, 100.0.0.0/10, 100.128.0.0/9, 101.0.0.0/8, 102.0.0.0/7, 104.0.0.0/5, 112.0.0.0/4, 128.0.0.0/1, ::/1, 8000::/2, c000::/3, e000::/4, f000::/5, f800::/6, fc00::/8, fd00::/10, fd40::/11, fd60::/12, fd70::/13, fd78::/15, fd7a::/20, fd7a:1000::/24, fd7a:1100::/26, fd7a:1140::/28, fd7a:1150::/29, fd7a:1158::/30, fd7a:115c::/33, fd7a:115c:8000::/35, fd7a:115c:a000::/40, fd7a:115c:a100::/41, fd7a:115c:a180::/42, fd7a:115c:a1c0::/43, fd7a:115c:a1e1::/48, fd7a:115c:a1e2::/47, fd7a:115c:a1e4::/46, fd7a:115c:a1e8::/45, fd7a:115c:a1f0::/44, fd7a:115c:a200::/39, fd7a:115c:a400::/38, fd7a:115c:a800::/37, fd7a:115c:b000::/36, fd7a:115c:c000::/34, fd7a:115d::/32, fd7a:115e::/31, fd7a:1160::/27, fd7a:1180::/25, fd7a:1200::/23, fd7a:1400::/22, fd7a:1800::/21, fd7a:2000::/19, fd7a:4000::/18, fd7a:8000::/17, fd7b::/16, fd7c::/14, fd80::/9, fe00::/7 | |
| Endpoint = EXAMPLE |
| /** | |
| * 1. open cloudflare dashboard, choose domain, go to DNS section | |
| * 2. open browser's dev tool (via F12 or inspect or however) | |
| * 3. in devtool, go to console tab | |
| * 4. clear all existing messages | |
| * 5. paste all script below | |
| * 6. hit enter and watch | |
| * 7. script only delete records displayed in the screen | |
| * 8. if want to delete more, refresh browser and run script again | |
| * |
| #!/bin/bash | |
| # Define variables | |
| VPS_IP="" | |
| API_KEY="" | |
| API_PASSWORD="" | |
| PANEL_URL="https://panel.example.com:4083" | |
| # Stop the VPS | |
| stop_vps() { |
A one-line command that creates the script in the /opt directory and sets up the cronjob to run at 2:10 AM:
sudo bash -c 'echo -e "#!/bin/bash\nsudo apt-get update\nsudo apt-get install --only-upgrade tailscale -y" > /opt/update_tailscale.sh && chmod +x /opt/update_tailscale.sh && (crontab -l 2>/dev/null; echo "10 2 * * * /opt/update_tailscale.sh") | crontab -'| # optionally: sudo apt-get remove virtualbox-guest-x11 | |
| sudo apt-get install virtualbox-guest-x11 | |
| sudo /usr/bin/VBoxClient --clipboard |
| ||sogou.com^ | |
| ||ocsp.apple.com^ | |
| ||file.apicvn.com^ | |
| ||dldir1.qq.com^ | |
| ||360.com^ | |
| ||360.cn^ | |
| ||izatcloud.net^ | |
| ||fengkongcloud.com^ | |
| ||tebiefuza.cn^ | |
| ||fengkongcloud.com^ |