Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| Host github.com | |
| User git | |
| Hostname github.com | |
| PreferredAuthentications publickey | |
| IdentityFile /home/user/.ssh/id_rsa |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| /** | |
| * Created by buhi on 2017/7/11. | |
| */ | |
| import * as React from "react" | |
| import {Grid,GridFieldSchema,GridProps} from "ag-grid-material-preset"; | |
| import {IGetRowsParams} from "ag-grid/dist/lib/rowModels/iDatasource"; | |
| import {GridApi} from "ag-grid/dist/lib/gridApi"; | |
| import {List,Repeat} from "immutable"; | |
| type InfiniteScrollGridProps = { |
A collection of Markdown code and tricks that were tested to work in Gist.
This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.
| ssh-keyegn | |
| #paste public key to the remote server | |
| ssh-add /path/to/private/key | |
| ssh root@ip-address | |
| sudo apt update |
| server_name domain.com www.domain.com; | |
| if ($host = 'domain.com') { | |
| return 301 http://www.domain.com$request_uri; | |
| } | |
| location / { | |
| # First attempt to serve request as file, then | |
| # as directory, then fall back to displaying a 404. | |
| proxy_pass http://localhost:3000; #whatever port your app runs on |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user