This file contains 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
$ mv Desktop/tutorial.pem .ssh | |
$ code .bashrc | |
$ . ~/.bashrc | |
$ chmod -R 400 ~/.ssh/tutorial.pem | |
$ tutorialec2 |
This file contains 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
$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com” |
This file contains 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
$ mkdir projects | |
$ cd projects | |
$ git clone git@github.com:my-github-repo |
This file contains 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
$ sudo apt-get update | |
$ sudo apt-get install nodejs | |
$ sudo apt install nodejs-legacy | |
$ sudo apt-get install build-essential | |
$ sudo apt-get install npm |
This file contains 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
$ sudo apt-get install postgresql postgresql-contrib | |
$ sudo -i -u postgres | |
$ psql | |
$ create role ubuntu; | |
$ alter role ubuntu with superuser; | |
$ alter role ubuntu with createdb; | |
$ alter role ubuntu with login; | |
$ \q | |
$ exit | |
$ sudo vim /etc/postgresql/9.5/main/pg_hba.conf |
This file contains 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
$ sudo apt-get install nginx | |
$ sudo ufw default deny incoming | |
$ sudo ufw default allow outgoing | |
$ sudo ufw allow ssh | |
$ sudo ufw allow 'Nginx HTTP' | |
$ sudo ufw enable | |
$ sudo ufw status (should say active) | |
$ systemctl status nginx | |
$ sudo vim /etc/nginx/sites-available/default | |
$ sudo nginx -t |
This file contains 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
$ sudo npm install pm2 -g | |
$ pm2 start bin/www (path to your node project's main file) | |
$ pm2 save | |
$ sudo pm2 startup | |
$ sudo service nginx restart |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css" | |
rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<h1>Small Banner</h1> | |
<div id="new-story-overlay-for-october" | |
class="new-story-body"> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css" | |
rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<h1>Medium Banner</h1> | |
<div id="new-story-overlay-for-october" | |
class="new-story-body"> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css" | |
rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<h1>Large Banner</h1> | |
<div id="new-story-overlay-for-october" | |
class="new-story-body"> |
OlderNewer