Skip to content

Instantly share code, notes, and snippets.

View gauravmehla's full-sized avatar
🚀
to the sky and beyond

Gaurav Mehla gauravmehla

🚀
to the sky and beyond
View GitHub Profile
const express = require("express");
const app = express();
const port = 3000;
let golfCoursesData = {
timeslots: {
"08:00": { capacity: 4, booked: [], waitingList: [] },
"10:00": { capacity: 4, booked: [], waitingList: [] },
},
};
@gauravmehla
gauravmehla / csis3300_queries.js
Last active December 2, 2022 16:49
CSIS 3300 - Database II
use('test');
// 1st Query
db.fact_movie_insight.aggregate([
{
$match: {
"movie.content_rating" : {
$in : [
"G", "PG", "PG-13"

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
Elastic Load Balancer, CloudFront and Let's Encrypt
Windows 8 Preinstall Keys
=========================
Windows 8
46V6N-VCBYR-KT9KT-6Y4YF-QGJYH
Windows 8 Professional
V7C3N-3W6CM-PDKR2-KW8DQ-RJMRD
@gauravmehla
gauravmehla / Commands.sh
Last active August 24, 2020 09:36
Commands.sh
# Node JS Installation
sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
# Speedtest
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
# Install GOLANG
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
@gauravmehla
gauravmehla / get_geo_co-ordinate.js
Created March 27, 2020 08:38
A simple snippet to get co-ordinates of array of address's.
/* Get the latitude and longitude from address:
Author : Bastin Robins J
Modified By : Gaurav Mehla
*/
// Add the link to webpage
<script src="https://maps.googleapis.com/maps/api/js?key=API_KEY_HERE" type="text/javascript"></script>
<script>
(async function(){
@gauravmehla
gauravmehla / GetLatLong.js
Created March 27, 2020 08:34 — forked from BastinRobin/GetLatLong.js
Get Latitude And Longitude Javascript Function
/* Get the latitude and longitude from address:
Author : Bastin Robins J
*/
// Add the link to webpage
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
//Function to covert address to Latitude and Longitude
var getLocation = function(address) {
var geocoder = new google.maps.Geocoder();
[{
"type": "SCHEDULED",
"title": "Meeting A",
"datetime": 1541059200000,
"location": "Navi Mumbai",
"status": 0,
"groupName": "Group 1",
"clientName": "Client 1"
},
{
@gauravmehla
gauravmehla / aes.go
Created August 30, 2018 12:12 — forked from willshiao/aes.go
AES 256-CFB in Node.js and Golang
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"fmt"
"io"