rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": 2, | |
| "user": { | |
| "name": "Alex", | |
| "imageUrl": "https://image.ibb.co/cA2oOb/alex_1.jpg", | |
| }, | |
| "lastTimestamp": "10:00 AM", | |
| "lastMessage": "Or maybe not, let me check logistics and call you. Give me sometime" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "profile": { | |
| "id": 1, | |
| "name": "Karthik", | |
| "picture": "https://image.ibb.co/k0wVTm/profile_pic.jpg", | |
| "status": "Available", | |
| "friends": [ | |
| { | |
| "id": 2, | |
| "name": "Alex", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. nvm | |
| apt-get install build-essential libssl-dev | |
| # use curl | |
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
| # or Wget | |
| # wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
| source ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR'); | |
| html, body { height:100%; font-family: 'Noto Sans KR', sans-serif; -webkit-text-size-adjust:none; font-size:12px; } | |
| body, input, select, button, textarea, h1, h2, h3, h4, h5, h6, table { line-height:1.5; font:inherit; color:inherit; } | |
| html, body, div, form, input, select, button, textarea, legend, fieldset, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, blockquote, address, p, th, td, caption { margin:0; padding:0; } | |
| ol, ul, li { list-style:none; } | |
| img, fieldset { vertical-align:middle; border:0 none; } | |
| input, select, textarea { vertical-align:middle; resize:none; } | |
| input[type=text], input[type=password], input[type=submit], input[type=search], input[type=email], input[type=tel], textarea { -webkit-appearance:none; } | |
| button { border:0 none; background:transparent; cursor:pointer; } |
Just another way of doing it ;-)
install pm2 in global
npm i -g pm2
start command
pm2 start npm --name "your-app-alias" -- start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb