Skip to content

Instantly share code, notes, and snippets.

View LabN36's full-sized avatar
๐Ÿ‘‹

Rishabh Agrawal LabN36

๐Ÿ‘‹
View GitHub Profile
{
"recipient":{
"id":"938355996293359"
}, "message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "list",
npm intall command was not working to i try to open cmd as an Admin then it runs successfully
tags
branches
release
forn
timeline
trunk
clonning
collaboration
staging area(allow git to start tracking those files)
commit(taking a snapshot)
@LabN36
LabN36 / oauth.md
Created April 19, 2017 11:16
OAuth Doubts

as we know Oauth2 authorize(not authenticate) an end user's account(resource owner) to be used by third-party services

generally there are 2 types access_token generating scheme

  1. authorization_code grant
  2. implicit grant flow

this flow allow other applications to use my user's resource.

steps

  1. generally this application redirect to my server like login.myapp.com for login
@LabN36
LabN36 / 0x00000.bin
Created April 28, 2017 13:20 — forked from ajfisher/0x00000.bin
ESP8266 Transparent bridge to J5
@LabN36
LabN36 / ESP8266-12 nokia 5510
Created April 29, 2017 15:25 — forked from diekaines/ESP8266-12 nokia 5510
ESP8266-12 LCD nokia 5510
/*
* SCHEMATIC http://i.imgur.com/plwZbFa.png
*
* Connecting ESP8266 (ESP-12) and Nokia 5110 LCD
* www.KendrickTabi.com
* http://www.kendricktabi.com/2015/08/esp8266-and-nokia-5110-lcd.html
*/
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
@LabN36
LabN36 / letsencrypt
Created September 28, 2017 19:01
LETS ENCRYPT BASICS
Q: what you need to do for https ?
A: you need to get a certificate from CA(let's Encrypt is a CA)
Q: How to get a Certificate ?
A: in order to get a certificate for your website's
domain from let's encrypt you have to demonstrate control
over the domain.
with let's encrypt you need a software that uses
ACME protocol which runs on your web host
@LabN36
LabN36 / solid_principle.md
Created February 13, 2025 06:31
SOLID Principle with example

Okay, here are short Java examples illustrating each of the SOLID principles:

1. Single Responsibility Principle (SRP)

  • Bad (violates SRP):

    class User {
        private String username;
        private String password;
@LabN36
LabN36 / gist:b4bfc39b4be7b7823b26f033d62b3730
Created February 24, 2025 15:42
System Design Interview Preparation for Flutter Developer
This Gist contains list of interview question in unordered fashion
@LabN36
LabN36 / id_rsa.pub
Created March 10, 2025 06:06
ssh_key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCukCv0a4b3MqaALOpPW4fAG/oNZ+1sxG4jc+ed/5tTNsx4ZJPy9YPARC31FMzvjI1cSKlvsGQN6XAzYYjiQ713sudCoH43cT7oeGVUnlDPjejQ2JFTzMZhQ0OLcwaRAA37K/8yWn4Qfbo2t+7Zp0/FDclC6HobMZ5zgned8IZnaRFMBzsYViMz8LVUBplEpDZdPVGDGRNMnTWMTRa68p+rWvrTYY2TQe+LZT/xfPdezQYwSmrZ5REd6EizS8TMbNgYcvoMMFIA/z4eFfEbtJI8VUMqojogKGrKWep1JkBPhclbVatdYA3Na84bbYMK+TLkLYYeJuuyrQE1MDBVBz+0Bp2WiFqfxnqpEtEthtdmCn4ezgsOQGR7A2E51Z/9pv+EJw/PSwIf1XMkyMkcuHhvFMBk5d/2OoeT/58qGqxIDDqSrXDSVQYkI0y2ecXRZUNKb/LOoI2AlJCGGGl8wHQJsrUTq6sKD1MDHbXOueVZlbeJIH6t1fbWyb9w7qMWlp0= [email protected]