- AWS로 ubuntu 16.04 시작
- user-data를 넣어 보자
#!/bin/bash
mkdir /home/ubuntu/script/
cat <<'EOF' >> /home/ubuntu/script/slack.sh
#!/bin/bashI 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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
Just another way of doing it ;-)
install pm2 in global
npm i -g pm2
start command
pm2 start npm --name "your-app-alias" -- start
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
| @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; } |
| # 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 |
| { | |
| "profile": { | |
| "id": 1, | |
| "name": "Karthik", | |
| "picture": "https://image.ibb.co/k0wVTm/profile_pic.jpg", | |
| "status": "Available", | |
| "friends": [ | |
| { | |
| "id": 2, | |
| "name": "Alex", |
| [ | |
| { | |
| "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" | |
| }, |