Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
mein Hobby ist die Entwickle und erstellen komplexe Codes, das ist schönster

Emad Alhamou Alhamou

💭
mein Hobby ist die Entwickle und erstellen komplexe Codes, das ist schönster
View GitHub Profile
@Alhamou
Alhamou / index.js
Last active Nov 27, 2019 — forked from cafeasp/index.js
google drive api Node js - Quickstart
View index.js
const fs = require('fs');
const readline = require('readline');
const { google } = require('googleapis');
//Drive API, v3
//https://www.googleapis.com/auth/drive See, edit, create, and delete all of your Google Drive files
//https://www.googleapis.com/auth/drive.file View and manage Google Drive files and folders that you have opened or created with this app
//https://www.googleapis.com/auth/drive.metadata.readonly View metadata for files in your Google Drive
//https://www.googleapis.com/auth/drive.photos.readonly View the photos, videos and albums in your Google Photos
//https://www.googleapis.com/auth/drive.readonly See and download all your Google Drive files
// If modifying these scopes, delete token.json.
@Alhamou
Alhamou / git_cheat-sheet.md
Created Mar 22, 2019 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
View git_cheat-sheet.md
@Alhamou
Alhamou / docker-help.md
Last active Mar 31, 2019 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

View gist:70a9807ee79b57ca8d006bf8d19a5877
<?php
/**
this is a simple method , which will return soundex of transliterated arabic string
*/
function arSoundex($string)
{
// remove any pounctions and any space etc ..
$string = preg_replace("/\\p{P}|\\p{M}/u", "" , $string);
$chars = array(
"ا"=>"أإاآ" ,
@Alhamou
Alhamou / webdev_online_resources.md
Created Jul 20, 2018 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@Alhamou
Alhamou / server.js
Last active Sep 4, 2018 — forked from tagr/server.js
Node.js/Express: Add Expires header to /images and /stylesheets directories
View server.js
# set client body size to 20M #
client_max_body_size 20M;
server Block :
location / {
proxy_pass http://167.99.154.190:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
You can’t perform that action at this time.