Skip to content

Instantly share code, notes, and snippets.

Working from home

Abdulrahman elzahaby el3zahaby

Working from home
Block or report user

Report or block el3zahaby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
el3zahaby / .htaccess
Last active Nov 11, 2019
Laravel 5-6 – Remove Public from URL
View .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
View country.php
$data = array(
['slug' => 'AF', 'title' => 'Afghanistan', 'native' => 'غانستان'],
['slug' => 'AX', 'title' => 'Åland Islands', 'native' => 'Åland'],
['slug' => 'AL', 'title' => 'Albania', 'native' => 'Shqipëri'],
['slug' => 'DZ', 'title' => 'Algeria', 'native' => 'الجزائر'],
['slug' => 'AS', 'title' => 'American Samoa', 'native' => ''],
['slug' => 'AD', 'title' => 'Andorra', 'native' => ''],
['slug' => 'AO', 'title' => 'Angola', 'native' => ''],
['slug' => 'AI', 'title' => 'Anguilla', 'native' => ''],
el3zahaby / ElzahabyDynamicLaravelString.php
Last active Nov 14, 2019
make 'string syntax' to dynamic Laravel php
View ElzahabyDynamicLaravelString.php
function ElzahabyDynamicLaravelString($model,$syntax,$sign=null){
if (isset($model) && $syntax == null){
$input = $model::getListFields()['syntax'];
}else {
$input = $syntax;
$output = $input;
$regex = '/'.(($sign != null)?$sign:':-:').'[a-z._]+/im';
if (preg_match_all($regex, $input, $matches, PREG_PATTERN_ORDER)) {
el3zahaby /
Last active Oct 5, 2019
"routes/console.php" laravelSetup is command line to start setup for Laravel 6


laravelSetup is command line to start setup for Laravel 6

path of file: routes/console.php

after you just create a blank Laravel Project, you will need this artisan setup command line. with any blank Laravel just add this file to routes/console.php and call composer install && php artisan setup to make everything set up to, finally do your job

this setup command line made specific for Laravel version 6 with ❤ by A.El-zahaby egy.js

this includes :

View dns.txt
el3zahaby / php-html-css-js-minifier.php
Created Jul 10, 2019 — forked from Rodrigo54/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
View php-html-css-js-minifier.php
* -----------------------------------------------------------------------------------------
* Based on ``
* -----------------------------------------------------------------------------------------
// HTML Minifier
function minify_html($input) {
el3zahaby / Lorem
Last active Jul 26, 2019
Lorem Ipsum - All the facts - Lipsum generator by javascript
View Lorem
el3zahaby / getImgFromString.php
Created Jun 11, 2018
PHP | get all <img> tag and extract the “src” attribute
View getImgFromString.php
function getImgFromString($html){
preg_match_all('/<img[^>]+>/i',$html, $result);
$img = array();
$i = 0;
foreach( $result[0] as $img_tag)
preg_match_all('/(src)="([^"]+)"/i',$img_tag, $img[$i]);
el3zahaby / Direct Link of YouTube
Last active Nov 12, 2019
PHP API To get Direct Link of YouTube videos

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.


Running a local server for testing purposes:

You can’t perform that action at this time.