Skip to content

Instantly share code, notes, and snippets.

View Amr1977's full-sized avatar
🙂
سيجعل الله بعد عسر يسرا

Amr Lotfy Amr1977

🙂
سيجعل الله بعد عسر يسرا
View GitHub Profile
@Amr1977
Amr1977 / matrix_delivery.feature
Created October 19, 2025 08:10
Matrix Delivery
# P2P Delivery Platform - BDD Feature Files (Accumulative)
# Each scenario has a unique ID for reference
## ============================================================================
## PHASE 1: USER MANAGEMENT
## ============================================================================
Feature: User Registration and Authentication
As a new user
I want to register and login to the platform
@Amr1977
Amr1977 / download_mp3s.js
Created October 7, 2025 08:03
Downloads all MP3 files from a specific tab (if any) in a reciter page. * Usage: node download_mp3s.js "https://ourquraan.com/shyookh/<reciter>#<tab-id>"
/**
* Script: download_mp3s.js
* Description: Downloads all MP3 files from a specific tab (if any) in a reciter page.
* Usage: node download_mp3s.js "https://ourquraan.com/shyookh/<reciter>#<tab-id>"
*/
import fs from 'fs';
import path from 'path';
import axios from 'axios';
import * as cheerio from 'cheerio';
#!/bin/sh
MODDATE=$(stat -c %Y ~/Documents/timetracker2/timetracker2.db)
MODDATE=${MODDATE%% *}
while [ : ]
do
sleep 180
echo $(date )
MODDATE2=$(stat -c %Y ~/Documents/timetracker2/timetracker2.db)
MODDATE2=${MODDATE2%% *}
if [ $MODDATE -eq $MODDATE2 ]
@Amr1977
Amr1977 / update-drivers.sh
Last active September 4, 2018 19:27
Auto update ChromeDriver and GeckoDriver if needed.
# https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5
# https://gist.github.com/birdsarah/23312f1d7cbd687ac376c95662254773
# This script checks & downloads latest chromeDriver and geckoDriver IF needed.
# New drivers are extracted and copied to $driversDestination
# IMPORTANT: Remember to change $driversDestination variable below to match your case
# You can call this script before launching your test suite so you always get latest drivers each run
os=linux64
driversDestination=../dependencies/browser-drivers/
@Amr1977
Amr1977 / test1
Created July 21, 2014 09:10
test1
test 1