Skip to content

Instantly share code, notes, and snippets.

View maherelgamil's full-sized avatar
😉

Maher El Gamil maherelgamil

😉
View GitHub Profile
@maherelgamil
maherelgamil / install.sh
Last active September 3, 2018 23:29
[VPS install bash script for Ubuntu 16.04] #ubuntu #linux #server #vps
# =================== YOUR DATA ========================
SERVER_NAME="some-server-name"
SERVER_IP="111.111.11.11"
USER="someuser"
SUDO_PASSWORD="secret-password-one"
MYSQL_ROOT_PASSWORD="secret-password-two"
@maherelgamil
maherelgamil / slugify.js
Last active September 3, 2018 23:24 — forked from Omranic/slugify.js
[Slugify] Converts a string to a "URL-safe" slug. #javascript
/**
* Converts a string to a "URL-safe" slug.
* Allows for some customization with two optional parameters:
*
* @param {string} Delimiter used. If not specified, defaults to a dash "-"
* @param {array} Adds to the list of non-alphanumeric characters which
* will be converted to the delimiter. The default list includes:
* ['–', '—', '―', '~', '\\', '/', '|', '+', '\'', '‘', '’', ' ']
*/
if (!String.prototype.slugify) {