Skip to content

Instantly share code, notes, and snippets.

View F50Ci37Y's full-sized avatar
🤘
struggling

Ali F50Ci37Y

🤘
struggling
  • Ērānšahr
View GitHub Profile

📡 Device Notification Script Setup Guide (OpenWrt)

1. 🏭 Register for MAC Vendor Lookup

  • Go to macvendors.com
  • Sign up and generate your API token
  • Paste the token into the MACVENDORS_TOKEN variable inside the script

2. 🤖 Create a Telegram Bot

#!/bin/sh
SLEEP=10
SWITCHED=0
SUB_COUNT=2
COUNTRY_CHECK=1
MAX_LATENCY=1500
STATS_FILE="/root/passwall_stats.json"
LOCK_FILE="/tmp/passwall-auto-switch.lock"
TEST_URL="https://www.gstatic.com/generate_204"
@F50Ci37Y
F50Ci37Y / README.md
Last active April 27, 2025 12:29
دانلود از یوتیوب با yt-dlp

از این لینک نسخه مناسب سیستم عامل رو دانلود کنید.

برای پیش‌نیاز، ما پکیج FFmpeg رو لازم داریم.

برای احراز هویت گوگل هم مرورگر فایرفاکس رو لازم داریم که اگر ندارید نصب کنید.

بعد از دانلود yt-dlp اون رو باید توسط ترمینال به شکل زیر اجرا کنید:

./yt-dlp https://www.youtube.com/watch?v=tv8k4MF9bog
@F50Ci37Y
F50Ci37Y / README.md
Created January 31, 2021 08:34
Find URL of dependencies of a package

Find URL of dependencies of a package and save them as a script file and you can run it for download depends packages

If some dependencies have been installed, we ignore them.