Skip to content

Instantly share code, notes, and snippets.

View Sayan-Roy-729's full-sized avatar
🎯
If you can’t explain it simply, you don’t understand it well enough.

Sayan Roy Sayan-Roy-729

🎯
If you can’t explain it simply, you don’t understand it well enough.
View GitHub Profile
@Sayan-Roy-729
Sayan-Roy-729 / Install_Node_Yarn.md
Last active June 18, 2021 12:35
Install Node, npm and Yarn on VPS

Install Node, npm and Yarn on VPS:

Update pre-intstalled packages:

sudo apt update

Install curl:

sudo apt-get install curl
@Sayan-Roy-729
Sayan-Roy-729 / deploy_node_app.md
Last active June 17, 2021 05:23
Deploy Node App in VPS using Nginx

Deploy Node App Using Nginx:

💡You can deploy any node app (template engine app or api app) into your server.

🎆 Update Pre-installed packages:

sudo apt update 

🎆 Install curl:

sudo apt-get install curl 
@Sayan-Roy-729
Sayan-Roy-729 / deploy_multiple_sites.md
Last active June 16, 2021 16:28
Deploy multiple websites on a single websites using Nginx

Deploy Multiple Sites Using Nginx on a VPS:

Prerequisties:

  • Ubuntu 20.04LTS or 18.04LTS vps
  • You have SSH shell access to your VPS with sudo access user.
  • Two domain names are pointed to your VPS public IP address. Here I will use two domains project-purpose.co.in and project-backend.in

Install LEMP Stack:

To install LEMP stack, click here

>## Create Directory Structure

@Sayan-Roy-729
Sayan-Roy-729 / Deploy_ReactJS_APP.md
Last active June 17, 2021 04:49
Deploy React.JS application in UBUNTU VPS Using Nginx Easily.

React.JS APP Deployment on VPS Using Nginx

Update The pre-installed packages:

sudo apt update

INSTALL curl package:

sudo apt-get install curl 

Javascript

For tutorial video click here

Character Sets:

  • The below regular expression code will match with all those words which first letter should be a or b or c or 1 or 2 or 3 and next 3 characters should be 000. Besides this, no word will be match. E.g. a000 b000 2000 should match but e000 will not match.
/[abc123]000/
  • The below regular expression will match all the words those has last 3 characters 000 and the first character will be everything except p & e. e.g. a000 b000 2000 e000 will be match but p000 will not match
/[^pe]000/
@Sayan-Roy-729
Sayan-Roy-729 / DummyVideo.js
Created May 9, 2021 05:58
Dummy Video URL with description, title, subtitle and thumb
const mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@Sayan-Roy-729
Sayan-Roy-729 / Emoji.md
Created May 9, 2021 05:48
GitHub Supported Emoji CheetSheet

Face Smiling

ico shortcode ico shortcode
top 😀 :grinning: 😃 :smiley: top
top 😄 :smile: 😁 :grin: top
top 😆 :laughing:
:satisfied:
😅 :sweat_smile: top
top 🤣 :rofl: 😂 :joy: top
top 🙂 :slightly_smiling_face: 🙃 :upside_down_face: top
top 😉 :wink: 😊 :blush: top
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],