Skip to content

Instantly share code, notes, and snippets.

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

Abdelaziz Sharaf Sharaf5

🏠
Working from home
View GitHub Profile
@Sharaf5
Sharaf5 / php.ini
Created June 7, 2019 15:56 — forked from adrienne/php.ini
PHP .ini file
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@Sharaf5
Sharaf5 / browser_detect.js
Created May 31, 2019 00:19 — forked from ideefixe/browser_detect.js
Detect Browsers, Versions, Mobile, Desktop, and OS with Javascript
var BrowserDetect = {
init: function() {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function(data) {
for (var i = 0; i < data.length; i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
@Sharaf5
Sharaf5 / Unhasher.js
Created May 26, 2018 16:03 — forked from xadim/Unhasher.js
Full functions Hashing and Unhashing in Javascript...
//Write JavaScript code to find a ten letter string of characters that contains only letters
//I've been tested with this and here is the solution for those it may interest
/*
Here is the given pseudo code that I changed to retrieve my company's name
It's in 10 words.
I call it a Hasher
*/
function hasher(hashedValue)