Skip to content

Instantly share code, notes, and snippets.

View naveenyagati's full-sized avatar

Naveen Yagati naveenyagati

View GitHub Profile
@naveenyagati
naveenyagati / Chrome Incognito Detection
Last active August 1, 2019 11:10
Chrome Incognito Detection
<script >
if ('storage' in navigator && 'estimate' in navigator.storage) {
navigator.storage.estimate()
.then(function(estimate){
console.log(`Using ${estimate.usage/1e+6} out of ${estimate.quota/1e+6} bytes.`);
if(estimate.quota/1e+6 < 116.361073){
alert("Why Incognito ?");
}});
}
</script>
@naveenyagati
naveenyagati / Laravel PHP7 LEMP DigitalOcean.md
Last active September 1, 2020 03:59
Configuration for Installing Laravel with LEMP on Ubuntu 16.04 on Digital Ocean

Steps to install latest Laravel with LEMP on Digital Ocean Ubuntu 16.4

This tutorial is made based upon my experiences.In DigitalOcean Firewall in Configured by default so no changes are needed.Let's Encrypt has been pre-installed for us in Digita Ocean, please see: http://do.co/le-nginx

Install PHP 7 on Ubuntu

sudo apt-get update
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get install zip unzip
sudo apt-get install -y php7.0 php7.0-fpm php7.0-mysql php7.0-zip php7.0-gd