1. Install and start mongo service [official docs]
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
import config | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
def send_mail(subject, message): | |
try: | |
message = MIMEMultipart() | |
message['From'] = config.sender_email | |
message['To'] = config.recipient_email |
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
**root required
add your cert normally, it will be stored in your personal store and android will ask you a pin/password... Proceed
With a file manager with root capabilities, browse files
in /data/misc/user/0/cacerts-added
or /data/misc/keychain/cacerts-added
. You should see a file here, it's the
certificate you have added at step 1.
Move this file to system/etc/security/cacerts
import sys | |
import logging | |
from logging.handlers import RotatingFileHandler | |
logging.basicConfig( | |
level=logging.DEBUG, | |
format='[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s', | |
handlers=( | |
RotatingFileHandler( | |
filename='logs.log', |