Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile
@-moz-document domain("web.whatsapp.com") {
/* Insert code here... */
._aigv._aigw {
filter: blur(5px);
}
span._ahxt.x1ypdohk.xt0b8zv._ao3e, /* chat sender name */
span._ahxt._ao3e, /* chat replay */
span.x1iyjqo2.x6ikm8r.x10wlt62.x1n2onr6.xlyipyv.xuxw1ft.x1rg5ohu._ao3e, /* chat heading - group name */
span.x1iyjqo2.x6ikm8r.x10wlt62.xlyipyv.xuxw1ft._ao3e.selectable-text.copyable-text, /* chat heading - group members */
._ak8l /* chat list on sidebar */

Table to help evaluate centralized and decentralized API management in Odoo:

Criteria Centralized API Module Decentralized (API in Each Module)
Code Organization All API code is in one module, providing a single access point for all endpoints. Each module contains its own API, making it modular and self-contained.
Dependency Management Requires the centralized API module to have dependencies on all other modules, leading to potential complexity as new modules are added. Dependencies are isolated within each module, reducing inter-module dependencies.
Scalability Can become difficult to scale as the centralized module grows with the addition of new APIs. Highly scalable, as each module can evolve independently with its o
@muath-ye
muath-ye / getProductQuantityInWarehouse.php
Created October 29, 2024 17:13
الحصول على كمية المنتجات في مخزن معين خلال فترة زمنية محددة
<?php
use Illuminate\Http\Request;
use App\Models\InventoryTransaction;
use Carbon\Carbon;
public function getProductQuantityInWarehouse(Request $request)
{
$request->validate([
'product_id' => 'required|exists:products,id',

A User Story is a fundamental element of Agile project management, used to describe a feature or functionality from the perspective of the end user. It's a simple, concise way to capture what a user needs or wants, focusing on the value it brings rather than the technical details of implementation. User stories are designed to keep the development team aligned with customer needs, emphasizing delivering real value in each feature or task.

Key Components of a User Story

A user story typically follows a format like:

As a [role], I want to [goal] so that [benefit].

Here’s a breakdown of each part:

Here are a few types of Agile plan templates that you can create in Excel to manage Agile projects efficiently. These templates follow typical Agile methodologies like Scrum or Kanban, and they can be easily customized according to your project needs.

1. Agile Sprint Planning Template

This template helps plan and track a single sprint (usually 1–4 weeks). It allows you to manage tasks, assign resources, and monitor progress.

Columns:

  • Task ID: Unique identifier for each task.
  • User Story: Description of the user story or feature.
  • Task: Breakdown of tasks from the user story.

Here’s a Sprint Plan template presented as a table:

Sprint ID Sprint Name Start Date End Date Sprint Goal Planned User Stories Completed User Stories Team Members Capacity (in story points) Velocity (in story points) Status Comments

Field Explanations:

  1. Sprint ID: Unique identifier for the sprint.
  2. Sprint Name: A descriptive name for the sprint.
@muath-ye
muath-ye / secure_delete.bat
Created October 20, 2024 16:59
Bash script to securely overwrite and optionally delete files on Windows.
@echo off
setlocal
REM Function to securely overwrite a file, including binary files
:SecureOverwriteFile
echo Overwriting file: %1
set FILE_SIZE=0
for %%I in (%1) do set FILE_SIZE=%%~zI
REM Check if file size is greater than 0
@muath-ye
muath-ye / Toggle-MariaDBs-README.md
Created September 18, 2024 13:28
A complete Windows batch script to toggle between the two MariaDB services

Explanation

  1. Service Names and Paths: Sets variables for the service names and paths to their respective executables.
  2. Check Services: Uses sc query to check if each service is running.
  3. Toggle Services: If one service is running, it stops that service and starts the other. If neither service is running, it starts the first service by default.
  4. Execution: Uses sc stop and sc start to manage the services.
  5. Pause: Pauses the script at the end so you can see the output.

Save this script with a .bat extension, and run it with administrator privileges to toggle the MariaDB services.

@muath-ye
muath-ye / grim-reaper-s-used-cars-deal-wheel.markdown
Created September 17, 2024 06:27
Grim Reaper's Used Cars - Deal Wheel
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.