Skip to content

Instantly share code, notes, and snippets.

View bassemZohdy's full-sized avatar

Bassem Reda Zohdy bassemZohdy

View GitHub Profile
@bassemZohdy
bassemZohdy / prompt.md
Last active June 21, 2026 13:20
API Resource Management Prompt

You are a senior full-stack engineer/architect. Build a fully runnable API Resources Management System — a metadata-driven platform where admins define dynamic resource types and users manage records of those types through a generated CRUD UI.

No TODOs, placeholder returns, or // implement later comments — every layer must be complete. Before writing code:

  1. Verify the latest stable versions and apply current official best practices for each technology in the stack. Document versions, best-practice decisions, and reference links in the README.
  2. If this prompt runs against any existing code (single file, snippet, or full repository), update that code in place to meet the same latest-stable-version and best-practice requirements — do not leave outdated code alongside the new implementation.

BASSEM REDA ZOHDY
📧 bassem.zohdy@gmail.com | 📞 +971 56 861 4178 | LinkedIn: linkedin.com/in/bassemzohdy

Cloud-Native Architecture • Microservices • Kubernetes • DevOps Automation
Over two decades of experience


PROFILE

Senior Technical Architect with extensive experience designing and delivering scalable, secure, and cloud-native enterprise platforms. Specialized in modernization of legacy products, event-driven architectures, DevOps automation, and platform reliability. Skilled in leading cross-functional engineering teams, defining architecture standards, and enabling faster delivery cycles through automation and observability. Proven success with multi-cloud deployments (Azure, OCI, AWS), Java/Spring ecosystems, and product lifecycle optimization.

AI Agent Development Playbook

Required framework for all development tasks. Plan before execution, specify task category and complexity, implement with quality gates, and report status after completion. Keep work small, traceable, testable, and reversible.


🎯 Operating Principles

Documentation-First Development

  • NO CODE without documentation: All tasks must begin with complete planning documentation
FROM centos:6
LABEL maintainer="bzohdy"
RUN yum -y update && yum -y install ksh
ADD https://downloads.sourceforge.net/project/gull/seagull/1.8.2/seagull-1.8.2-Linux_RHEL6U1_X86_64.tar.gz /tmp/
WORKDIR /tmp
RUN tar xvf seagull-1.8.2-Linux_RHEL6U1_X86_64.tar.gz
WORKDIR /tmp/packages
RUN rpm -ivh seagull-core-1.8.2-linux-2.6-intel.rpm && \
rpm -ivh seagull-diameter-protocol-1.8.2-linux-2.6-intel.rpm
WORKDIR /opt/seagull
FROM alpine
LABEL maintainer="bassem.zohdy@gmail.com"
ARG JAVA_VERSION=8
ENV LANG C.UTF-8
ENV JAVA_HOME /usr/lib/jvm/default-jvm
ENV PATH $PATH:/usr/lib/jvm/default-jvm/jre/bin:/usr/lib/jvm/default-jvm/bin
RUN apk update --no-cache && apk add --no-cache bash openjdk$JAVA_VERSION
ADD https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-cli/2.0.0.BUILD-SNAPSHOT/spring-boot-cli-2.0.0.BUILD-20171013.160946-30-bin.tar.gz /opt/spring/
WORKDIR /opt/spring/
RUN tar xvf spring-boot-cli-2.0.0.BUILD-20171013.160946-30-bin.tar.gz
#!/usr/bin/env bash
set -e
#set -x
arrayContains(){
ARRAY=($1);
ITEM=$2;
if echo "${ARRAY[*]}" | grep -E -q " $ITEM |^$ITEM | $ITEM\$" ;
then
echo true;
else
#!/bin/bash
set -e
set -x
MAP_FILE='./map'
DELIMITER=","
add (){
KEY=$1
VALUE=$2
echo Key=$KEY Value=$VALUE
#/bin/bash
# if sudo not required
# find . -name *.sh 2>>/dev/null| xargs chmod +x
find . -name *.sh 2>>/dev/null| xargs sudo chmod +x
# to verify
# find . -name *.sh -ls 2>>/dev/null
# OR
# find . -name *.sh 2>>/dev/null| xargs ls -l
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.IntStream;
public class StreamSample {