Skip to content

Instantly share code, notes, and snippets.

View KrishnaPrasath's full-sized avatar
🏠
Working from home

Murdoc KrishnaPrasath

🏠
Working from home
View GitHub Profile
REFUND POLICY
Last updated October 06, 2017
Thank you for being part of our organization. We hope you are happy with your donation. We'd like to kindly let you know that the donation you've made, can or will not be refunded. However, if you are not completely satisfied with your transaction for any reason, you may contact us within 24 hours of the transaction and we'll help you with additional procedures. Please see below for more information on our refund policy.
REFUNDS
All refund request must be postmarked within two (2) days of the purchase date.
@KrishnaPrasath
KrishnaPrasath / api.md
Created October 24, 2020 04:59
Admin dashboard API

HTTP/1.1 200 OK X-Powered-By: Express Access-Control-Allow-Origin: * Content-Type: application/json; charset=utf-8 Content-Length: 31662 ETag: W/"7bae-Iaex/ZAz1Yrk+L7FtR+xGNLYe+c" Date: Sat, 24 Oct 2020 04:37:09 GMT Connection: close

{

@KrishnaPrasath
KrishnaPrasath / docker_trg.md
Last active August 16, 2020 12:29
Docker tutorial

Docker CMD

  • docker ps to list all the container
  • docker ps -f "status=exited" to list the containers exited
  • docker images to view images
  • docker stop cid to stop
  • docker start cid to start
  • docker run chrisnoring/node:latest to run the project

    we can add flag -p to route port such as -p 8000:3000 will route all the calls to 8000(container's port) to 3000 > Also we can use -d flag to run the container in daemon mode, i.e. in background.

@KrishnaPrasath
KrishnaPrasath / reset_pwd.md
Created August 1, 2020 21:35
Reset password URL generation
@KrishnaPrasath
KrishnaPrasath / buying_a_domain.md
Last active August 1, 2020 20:32
Guide to buying a domain

WHO IS PROTECTION ?

To protect your personal information from the who is database where you enter a domain and you get the information of the owner of the domain.

GoDaddy

* Sketchy
* Expensive
* No free who is protection ($10 a year)
@KrishnaPrasath
KrishnaPrasath / nodemailer.md
Last active August 1, 2020 12:56
Nodemailer
app.post('/post/send_email', (req, res)=>{
    let data = req.body;
    let toAddress = data.toAddress;
    let subject = data.subject;
    let messageBody = data.messageBody;
    let transporter = nodemailer.createTransport({
        host: "smtp.gmail.com",
        port: 587,
        secure: false, // true for 465, false for other ports
@KrishnaPrasath
KrishnaPrasath / css-trg.md
Created July 29, 2020 16:48
Learning CSS by playing games

#Learning CSS!

  1. CSS FlexBox Main axis - X axis Cross axis - Y axis
justifyContent properties
* `center` - Aligns the item at the center of the _main axis_
* `flex-end` - Aligns the item at the end of the _main axis_
* `flex-start` - Aligns the item at the start of the _main axis_
  • space-between - Aligns the item at the main axis with space inbetween the elements
@KrishnaPrasath
KrishnaPrasath / css-trg.md
Created July 29, 2020 16:48
Learning CSS by playing games

#Learning CSS!

  1. CSS FlexBox Main axis - X axis Cross axis - Y axis
justifyContent properties
* `center` - Aligns the item at the center of the _main axis_
* `flex-end` - Aligns the item at the end of the _main axis_
* `flex-start` - Aligns the item at the start of the _main axis_
  • space-between - Aligns the item at the main axis with space inbetween the elements
@KrishnaPrasath
KrishnaPrasath / dns.md
Created July 19, 2020 13:35
How DNS works? and related things I learn.

DNS - Domain Naming System

Each computer has a cache memory which stores all the IP addresses of the domains (ex: google.com) for a period of time, say a week. So that the next time you visit google.com, the computer will get the IP from the cache memory and serves it to you.

What if the computer is a new one or the cache memory is empty?

Well, the first point of communication from browser to, would be a naming server. Every ISP (Internet Service Provider) would have Name server. The browser will send a DNS query to your ISP whenever you search for a domain, the first time.