Skip to content

Instantly share code, notes, and snippets.

View didinkaj's full-sized avatar
🎯
Focusing

JOHNSON DIDINYA didinkaj

🎯
Focusing
View GitHub Profile
@didinkaj
didinkaj / default nginx configuration file
Created April 13, 2020 13:51
default nginx configuration file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@didinkaj
didinkaj / Laravel Nginx Configuration file
Created April 13, 2020 13:54
Laravel Nginx Configuration file
server {
listen 80;
listen 443 ssl http2;
server_name .erp.test;
root "/home/vagrant/code/erp";
index index.html index.htm index.php;
charset utf-8;
@didinkaj
didinkaj / AutoLogout.js
Created September 9, 2023 17:19
Implementing AutoLogout Feature in Web Applications (VueJS)
<template>
<div v-if="warningZone" class="text-danger">Are you still with us?</div>
</template>
<script>
export default {
name: 'AutoLogout',
data () {
return {
events: ['click', 'mousemove', 'mousedown', 'scroll', 'keypress', 'load'],