Also you can watch the video.
https://www.youtube.com/watch?v=8S7s-p_enSY
- Press
Win+Skeys, and searchregeditthen openRegedit (Registry Editor).
| ``` | |
| server { | |
| server_name fund.mainnet-pat.me; | |
| location / { | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_connect_timeout 7d; |
| # ensure snap is up to date | |
| sudo snap install core; sudo snap refresh core | |
| # install certbot | |
| sudo snap install --classic certbot | |
| sudo ln -s /snap/bin/certbot /usr/bin/certbot | |
| # run certbot | |
| sudo certbot --nginx |
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
| #(Update from Python2 -> Python3) | |
| from twython import Twython | |
| from urllib.request import urlopen | |
| from importlib import reload | |
| import urllib | |
| import sys | |
| #reload(sys) | |
| #sys.setdefaultencoding('utf8') |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| Options +ExecCGI | |
| AddHandler cgi-script .cgi | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ flask.cgi/$1 [QSA,L] |
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on: