Skip to content

Instantly share code, notes, and snippets.

View kaushik-rishi's full-sized avatar
:octocat:
Learning

Rishi kaushik-rishi

:octocat:
Learning
View GitHub Profile
@kaushik-rishi
kaushik-rishi / 2019-https-localhost.md
Created October 24, 2022 04:43 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@kaushik-rishi
kaushik-rishi / google-drive-api.js
Created August 31, 2022 06:52 — forked from trulymittal/google-drive-api.js
Gist to demonstrate Google Drive API using NodeJs
/*
Google Drive API:
Demonstration to:
1. upload
2. delete
3. create public URL of a file.
required npm package: googleapis
*/
const { google } = require('googleapis');

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

{
"caret_style": "phase",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"drag_text": false,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
{
"description": "cobalt color scheme + github dark background",
"errorLens.fontSize": "12",
"errorLens.fontFamily": "Dank Mono",
"errorLens.fontWeight": "100",
"editor.glyphMargin": false,
"C_Cpp.errorSquiggles": "Disabled",
"zenMode.centerLayout": false,
"zenMode.fullScreen": false,
"[dart]": {
{
"scope": [
"comment",
"punctuation.definition.comment"
],
"settings": {
"foreground": "#0088FF",
"fontStyle": "italic"
}
},