Skip to content

Instantly share code, notes, and snippets.

View PrakadAlpha's full-sized avatar
🎯
Focusing

PrakadAlpha PrakadAlpha

🎯
Focusing
View GitHub Profile
@PrakadAlpha
PrakadAlpha / DockerNotes
Last active September 14, 2022 02:58
An intro to Docker
What is Docker?
- Docker is used for containarization.
- Docker runs the specific software or in this case an image without being installed in the system
- Docker is like mini containers of os running softwares inspite of any Operating system
- It helps to run multiple servers and softwares and many more..
What it Does?
- It isolates(Namespace) the resources[Processes, HardDrive, Users, InterProcessComm, Network] available from the system
@PrakadAlpha
PrakadAlpha / myscript.sh
Created June 5, 2020 04:07 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@PrakadAlpha
PrakadAlpha / gist:5b75fae56d4ae50612b7d08390bf8db1
Created April 18, 2020 16:09 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
Redis Commands::
- hmset key vals..
- hgetall key
- lpush key val
- lrange key 0 -1
- sadd key val
- smembers key
- sismember key val
- zadd key score val
@PrakadAlpha
PrakadAlpha / Auth&Auth.md
Created April 5, 2020 02:27
Way of handling sessions in Nodejs

Authentication and Authorization

  • There are two ways to handle these in web applications.

  • Using sessions method or jwt tokenized way to handle the auth and auth.

Handling Sessions

  • express-session express module with built in cookies based session management system and also integrate with stores to save the sessions.
@PrakadAlpha
PrakadAlpha / Node
Created March 30, 2020 08:18
Node Architecture and Performance Analysis
Threads:
It consists of intructions to be ran on a process in the cpu..It is a part of thread
An OS schedular tells which threads should be processed
Process:
An instance of a computer program
A process can have multiple threads
Cores(cpu):
A Cpu can execute more than one thread a time, this is called multi-threading or hyper-threading