Skip to content

Instantly share code, notes, and snippets.

View elsayed85's full-sized avatar

Elsayed Abdulrahman elsayed85

  • Innoscripta SE
  • Munich, Germany
  • 05:26 (UTC +02:00)
  • LinkedIn in/elsayed85
View GitHub Profile
function phpv() {
version="$1"
php_bin="/usr/bin/php${version}"
if [ -f "$php_bin" ]; then
sudo update-alternatives --set php "$php_bin"
echo "Switched to PHP ${version}"
else
echo "Invalid version number or PHP ${version} not installed."
<?php
namespace App\Filament\User\Resources\ServiceResource\Pages;
class ViewService extends ViewRecord
{
protected static string $resource = ServiceResource::class;
public ?string $client_secret = null;
public function mount(int|string $record): void
@elsayed85
elsayed85 / imei-eg.sh
Last active January 1, 2025 19:18
Replace 351941237314725 With Your IMEI
curl 'https://api-citizens-prod-imei.gs-ef.com/ceirimeicheck/api/v1/imei/check'
-H 'Host: api-citizens-prod-imei.gs-ef.com'
-H 'Content-Type: application/json'
-H 'Accept: */*'
-H 'Connection: keep-alive'
-H 'Accept-Language: en'
-H 'Content-Length: 34'
-H 'Accept-Encoding: gzip, deflate, br'
-H 'User-Agent: CitizenApp_Ntra/1.0.0 CFNetwork/1568.300.101 Darwin/24.2.0'
--data '{"imeiNumber":["351941237314725"]}'
<!DOCTYPE html>
<html>
<head>
<title>Portfolio</title>
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
/>
</head>
[
{
"mcp": {
"servers": {
"Context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@latest"
@elsayed85
elsayed85 / claude.md
Created February 5, 2026 09:05 — forked from OmerFarukOruc/claude.md
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.