Skip to content

Instantly share code, notes, and snippets.

View dimahmz's full-sized avatar
🏠
Working from home

Hamza dimahmz

🏠
Working from home
View GitHub Profile
@gilbertozioma
gilbertozioma / Prepare-for-Techncal-Interview-and-Coding-Task-for-PHP-LaraveI.md
Last active December 11, 2025 07:22
Technical Interviews and Coding Tasks for PHP/Laravel Backend Developer role

These are the tasks you might encounter in your PHP/Laravel job interviews:

  1. Coding exercises: These may involve solving programming problems using PHP or other relevant languages, implementing algorithms, or working with data structures.

  2. API design and implementation: You might be asked to design and implement APIs to meet specific requirements or integrate with existing systems.

  3. Database queries: You could be given tasks that involve writing SQL queries to retrieve or manipulate data in a database.

  4. Framework-specific tasks: You may have tasks to work with Laravel.

@ali-awwad
ali-awwad / laravel-on-azure-web-app-startup-command.sh
Last active December 11, 2025 05:32
Laravel On Azure Web Apps. Enabling Queues and Job Workers as well
# name this file as "startup.sh" and call it from "startup command" as "/home/startup.sh"
# check out my YouTube video "https://youtu.be/-PGhVFsOnGA"
cp /home/default /etc/nginx/sites-enabled/default
cp /home/php.ini /usr/local/etc/php/conf.d/php.ini
# install support for webp file conversion
apt-get update --allow-releaseinfo-change && apt-get install -y libfreetype6-dev \
libjpeg62-turbo-dev \
@schakko
schakko / nginx.conf
Last active January 17, 2024 08:06
Adjusted nginx.conf to make Laravel 9 and Laravel 10 apps with PHP 8.0, 8.1 and 8.2 features runnable on Azure App Service
server {
# adjusted nginx.conf to make Laravel 9 and Laravel 10 apps with PHP 8.0, 8.1 and 8.2 features runnable on Azure App Service
# @see https://laravel.com/docs/10.x/deployment
# @see https://laravel.com/docs/9.x/deployment
listen 8080;
listen [::]:8080;
root /home/site/wwwroot/public;
index index.php;
server_name example.com www.example.com;
// C++ program to show segment tree operations like construction, query
// and update
#include <bits/stdc++.h>
using namespace std;
// A utility function to get the middle index from corner indexes.
int getMid(int s, int e) { return s + (e -s)/2; }
/* A recursive function to get the sum of values in the given range
of the array. The following are parameters for this function.
@vasanthk
vasanthk / System Design.md
Last active December 11, 2025 19:10
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@pksunkara
pksunkara / config
Last active November 6, 2025 15:19
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]