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
| killport() { | |
| port=$1 | |
| pid=$(lsof -t -i :$port) | |
| if [ -n "$pid" ]; then | |
| echo "Process using port $port:" | |
| lsof -i :$port | |
| echo | |
| read -p "Are you sure you want to kill PID $pid? (y/n) " confirm | |
| if [ "$confirm" = "y" ]; then | |
| kill -9 $pid |
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
| { | |
| "engineering": [ | |
| "مهندس برق", "مهندس معماری", "مهندس شیمی", "مهندس سخت افزار", "مهندس هوافضا", "مهندس دریا", | |
| "مهندس کشاورزی", "مهندس بهداشت حرفه ای", "مهندس عمران", "مهندس صنایع", "مهندس نفت", | |
| "مهندس رباتیک", "مهندس معدن", "مهندس پزشکی", "مهندس بهداشت محیط", "مهندس راه آهن", | |
| "مهندس مکانیک", "مهندس مواد (متالورژی)", "مهندس پلیمر", "مهندس هسته ای", "مهندس نساجی", | |
| "مهندس شهرسازی" | |
| ], | |
| "education_and_social_services": [ | |
| "استاد دانشگاه", "معلم", "معلم کودکان خاص", "مشاور شغلی", "پژوهشگر", "مترجم", "فیزیکدان", |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| REM Set the CMD window title | |
| title Shecan Toggler | |
| REM Check for admin privileges and self-elevate if needed | |
| >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
| if '%errorlevel%' NEQ '0' ( | |
| echo Requesting administrative privileges... |