Dev Shortcuts

Git, WebSocket & Server Management Guide

دليل اختصارات Git وإدارة السكوت والسيرفر

Git Essentials | أساسيات جيت

Check status | حالة المستودع git status
Stage all | إضافة الكل git add .
Commit | حفظ التغييرات git commit -m "update"
Push | رفع الأكواد git push
New Branch | فرع جديد git checkout -b branch-name
Switch Branch | تبديل الفرع git checkout branch-name
Log History | تاريخ التعديلات git log --oneline --graph
Stash | حفظ مؤقت git stash
Pop Stash | استعادة المحفوظ git stash pop
Hard Reset | مسح التعديلات git reset --hard HEAD
Pull | سحب الأكواد git pull
Amend | تعديل آخر كوميت git commit --amend
Clone to current dir | سحب المشروع في المسار الحالي
git clone [URL] .

WebSocket & Logs | السوكت والوجات

Force Restart | إعادة تشغيل قسرية شاملة pkill -9 -f swoole && ...
Standard Stop | إيقاف السوكت العادي php artisan swoole:http stop
Check Status | حالة السيرفر الحالية php artisan swoole:http status
Success Logs | المحاولات الناجحة فقط tail -f ... | grep SOCKET-SUCCESS
Rejected Logs (Bots) | طرد البوتات المرفوضة tail -f ... | grep SOCKET-REJECTED
Global Socket Activity | متابعة الحركة العامة tail -f ... | grep SOCKET
All Logs (Raw) | عرض كافة السجلات الخام tail -f storage/logs/laravel.log
Check Port 1215 | التأكد من البورت netstat -tulpn | grep :1215
Force Free Port | تحرير البورت فوراً fuser -k 1215/tcp

Security & Blocking | الحماية والحظر

Permanent IP Block | حظر آيبي نهائياً iptables -I INPUT -s [IP] -j DROP
List Blocked IPs | عرض قائمة المحظورين iptables -L INPUT -n --line-numbers
Unblock by Line # | فك الحظر عن آيبي iptables -D INPUT [LINE]

Credentials | بيانات الدخول

App Key & Secret | مفتاح التطبيق والسر
Key: 1f8661e5dafc495a936b37d2a666aa31
Secret: 7a2c3571fde140cc98088d6e17e0c4ad

Artisan Commands | أوامر أرتيزان

Kick Ghosts | طرد المستخدمين الوهميين php artisan rooms:auto-kick
Monitor Room Pings | مراقبة البينج للغرف php artisan rooms:monitor-pings
Kick Latency | طرد بناءً على التأخر php artisan user:monitor-ping 100 --kick
Auto Kick Inactive | طرد تلقائي للخاملين php artisan user:auto-kick-inactive

Process Management | إدارة العمليات

Find Swoole Processes | البحث عن عمليت السوكت ps aux | grep swoole
Check Kick Process | التأكد من عمل الطرد ps aux | grep user:auto-kick...
Kill Kick Process | إيقاف عملية الطرد pkill -f user:auto-kick-inactive

Tinker Scripts | سكربتات تينكر

Reset Ping Time | تصفير وقت البينج php artisan tinker --execute="$u = App\Models\User::find(3492); $u->update(['last_ping_at' => now()->subMinutes(5)]);"
Full Kick & Deactivate | طرد كامل وحظر المستخدم php artisan tinker --execute="$userId = 3492; $u = App\Models\User::find($userId); if($u) { $u->update(['account_active' => 0]); ... }"
Copied! | تم النسخ!