Skip to content

Instantly share code, notes, and snippets.

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

Osman Goni Nahid osmangoninahid

🏠
Working from home
View GitHub Profile
@osmangoninahid
osmangoninahid / master-javascript-interview.md
Created February 28, 2022 16:28 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires -1;
server {
listen 80;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
error_page 405 =200 $uri;
}
}
@osmangoninahid
osmangoninahid / ejabberd.yml
Created April 24, 2018 12:56
Ejabbered YAML
###
###' ejabberd configuration file
###
###
### The parameters used in this configuration file are explained in more detail
### in the ejabberd Installation and Operation Guide.
### Please consult the Guide in case of doubts, it is included with
### your copy of ejabberd, and is also available online at
### http://www.process-one.net/en/ejabberd/docs/

Keybase proof

I hereby claim:

  • I am osmangoninahid on github.
  • I am osmangoninahid (https://keybase.io/osmangoninahid) on keybase.
  • I have a public key whose fingerprint is C9DD 40B0 1D5F 547A FB8C 4754 3933 71A5 75E1 1A82

To claim this, I am signing this object:

@osmangoninahid
osmangoninahid / azure_mongo_aggregation
Created November 5, 2017 06:20
Azure CosMos DB API for MongoDB New Released Aggregation queries support
/*
A sample schema
@Author : Osman Goni Nahid
{
FIELD1 : 1,
Bib : "12",
Name : "hummy Cummy",
Age : 24,
"M" : { "F" : "M"},
@osmangoninahid
osmangoninahid / mongodb_issue_solve
Created August 4, 2017 09:11 — forked from shudarshon/mongodb_issue_solve
This file consists solutions of some common mongodb problems.
#mongodb running problem in ubuntu 16.04
#socket permission deny
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock
sudo systemctl restart mongod.service
mongo
#mongodb lock due to iptable conflict
@osmangoninahid
osmangoninahid / app_privacy_policy
Created July 21, 2017 08:17
Mnn Home Care Payroll privacy policy
Privacy Policy
Mnn Home Care built the Mnn Home Care - Payroll app as a Free app. This SERVICE is provided by Mnn Home Care at no cost and is intended for use as is.
This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Mnn Home Care - Payroll unless otherwise defined in this Privacy Policy.
@osmangoninahid
osmangoninahid / archive_creator.sh
Created June 5, 2017 18:34
Archive creator bash script for *nix
#!/bin/bash
#variables are declared here
param_help="-h"
param_version="-v"
archieve_creator() {
#checks if there is any directory in the parameter
if [[ -d "$1" ]]; then
echo "This directory exits"