Skip to content

Instantly share code, notes, and snippets.

View franklinsales's full-sized avatar
😊
Well...trying to get the things done

Franklin Sales franklinsales

😊
Well...trying to get the things done
View GitHub Profile
@franklinsales
franklinsales / gist:ba968b68254c3e96291c1a86fb6f29ee
Created August 25, 2020 04:04 — forked from solenoid/gist:1372386
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
@franklinsales
franklinsales / Instructions.sh
Created November 15, 2018 07:02 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@franklinsales
franklinsales / How to use Images as Radio buttons.md
Created October 17, 2016 08:12 — forked from rcotrina94/How to use Images as Radio buttons.md
How to use images for radio buttons (input-radio).