Skip to content

Instantly share code, notes, and snippets.

View egyjs's full-sized avatar
:shipit:
the perfect man for the job

AbdulRahman El-zahaby egyjs

:shipit:
the perfect man for the job
View GitHub Profile
@egyjs
egyjs / Anydesk Batch File.md
Created November 6, 2024 12:45
Fix AnyDesk Countdown Delay Issue - Anydesk Countdown Reset (100-second Issue) - إصلاح مشكلة العد التنازلي في AnyDesk

Fix AnyDesk Countdown Delay Issue - Anydesk Countdown Reset (100-second Issue) - إصلاح مشكلة العد التنازلي في AnyDesk

This batch script, anydesk-batch.bat, is designed to fix the AnyDesk 100-second countdown delay issue. It moves AnyDesk configuration files from their default locations to a backup folder named old. This solution targets files in both the AppData\Roaming\AnyDesk folder (user-specific) and ProgramData\AnyDesk folder (system-wide).

Purpose: Fixing the AnyDesk 100-Second Countdown

Occasionally, AnyDesk may mistakenly detect usage patterns that suggest you are using it for commercial purposes. As a result, it may trigger a 100-second delay popup, significantly slowing down your remote access experience. This script helps to reset AnyDesk's configuration files, moving them to an old folder, and potentially bypassing the delay and resetting AnyDesk's usage records that might be causing the popup.

Why You Need This Script

@egyjs
egyjs / example.php
Created October 25, 2024 21:14
lol | - Abdulrahman Elzahaby
<?php
lol
@egyjs
egyjs / example.php
Created October 25, 2024 21:09
lol | - Abdulrahman Elzahaby
<?php
lol
@egyjs
egyjs / example.php
Created October 25, 2024 21:06
lol | - Abdulrahman Elzahaby
<?php
lol
@egyjs
egyjs / example.php
Created October 25, 2024 20:56
lol | - Abdulrahman Elzahaby
<?php
lol
@egyjs
egyjs / example.php
Created October 25, 2024 20:29
lol | - Abdulrahman Elzahaby
<?php
lol
<?php
namespace App\Mixins;
use Illuminate\Support\Facades\Response;
use stdClass;
class ResponseMixin
{
public function errors(): \Closure
@egyjs
egyjs / Automating Postman to Swagger with Version Control in Laravel Vapor.md
Last active January 18, 2024 16:17
Automating Postman to Swagger with Version Control using GitHub Actions and Laravel

Title: Automating Postman to Swagger with Version Control in Laravel Vapor


Hey folks! 👋 I wanted to share a neat workflow I've implemented for our Laravel Vapor project that automates the generation and upload of Swagger documentation with each Git tag, all seamlessly integrated with Postman. 🚀

🤖 GitHub Actions Workflow (deploy.yml)

With every push to a dev/* tag, GitHub Actions springs into action:

<?php
namespace App\Traits;
use App\Exports\ExcelExport;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Facades\Excel;
trait Exportable
String.prototype.replaceTemplateVars = function (data){
let str = this;
// data is object
for (let key in data) {
str = str.replace(new RegExp(`{${key}}`, 'g'), data[key]);
}
return str;
}
document.addEventListener("DOMContentLoaded", function() {
// Global Variables