Skip to content

Instantly share code, notes, and snippets.

View mahendra0859's full-sized avatar

Mahendra A R mahendra0859

View GitHub Profile
@mahendra0859
mahendra0859 / README.md
Last active March 9, 2020 13:48
Custom Snippets in Visual Studio Code

Snippets in Visual Studio Code

code > Preferences > User Snippets > New Global Snippets File > newSnippet.code-snippet
file path : /Users/username/Library/ApplicationSupport/Code/User/snippets
@mahendra0859
mahendra0859 / node_nginx_ssl.md
Last active March 23, 2020 05:29
Node app deploy with nginx & SSL

Node.js Deployment - NGINX, SSL With Lets Encrypt

Steps to deploy a Node.js app to AWS EC2 ubuntu using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create an EC2 instance and login using SSH

$ ssh -i <pem file> ubuntu@<public IP>
@mahendra0859
mahendra0859 / python_web_development.md
Last active April 10, 2020 22:05
Web Development Using Django , Python Library

Web Development Using Django - Python Library

* Download and install Python : https://www.python.org/downloads/

* Downlaod and install pyCharm IDE community : https://www.jetbrains.com/pycharm/download/

$ python --version

* Inside pyCharm terminal
@mahendra0859
mahendra0859 / react_app_deployment.md
Last active February 8, 2021 19:20
Deploying React App

Methods to deploy react app

Method 1: For static react app

$ npm run build
$ mv ./build ./docs
$ git add . && git commit -m "commit" && git push

* In GitHub Pages for source select 'master branch /doc folder`
@mahendra0859
mahendra0859 / git_cdn.md
Created April 16, 2020 10:25
Content Delivery Network - serving static js and css files

Content Delivery Network - serving static js and css files

  • Open the file that need to serve as static
  • Click on the 'Raw' option
  • Copy the url from the brower tab
  • Open GitCDN or min GitCDN
  • Paste the URL and copy the CDN link generated by GitCDN and use for serving css or js files

JS CDN :

@mahendra0859
mahendra0859 / node_heroku.md
Created April 19, 2020 19:20
Deploying NodeJS app in Heroku

Deploying NodeJS app in Heroku

  • Create a new app in heroku dashboard

  • Download and install the Heroku CLI

$ heroku login
$ cd my-project/
$ git init
@mahendra0859
mahendra0859 / brython.html
Created April 23, 2020 12:50 — forked from bradtraversy/brython.html
Python in the browser with Brython
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython.js" integrity="sha256-rA89wPrTJJQFWJaZveKW8jpdmC3t5F9rRkPyBjz8G04=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython_stdlib.js" integrity="sha256-Gnrw9tIjrsXcZSCh/wos5Jrpn0bNVNFJuNJI9d71TDs=" crossorigin="anonymous"></script>
@mahendra0859
mahendra0859 / design-resources-for-developers.md
Created May 11, 2020 02:57
Design Resources For Developers

Design Resources For Developers

A curated list of FREE design & UI resources for developers including stock photos, templates, frameworks, UI Kits, online tools and much much more.

Please read contributing guidelines before submitting new resources.

Table of Contents

@mahendra0859
mahendra0859 / angular_deployment.md
Created June 5, 2020 06:14
Deploying Angular App

Methods to deploy angular app

Method 1: For static angular app

* make a small change in the angular.json file and change the outputpath value to “docs/”.

$ ng build --prod --base-href "<repo-name>"

$ git add . && git commit -m "commit" && git push