sudo journalctl -u gunicorn
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 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', |
**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
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
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 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 |
1. Install and start mongo service [official docs]
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
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
#!/bin/bash | |
# enable color support of ls | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' |
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
setInterval(() => { | |
document.querySelectorAll(".circular.style-scope.yt-icon-button")[12].click(); | |
document.querySelectorAll(".style-scope.ytd-menu-popup-renderer")[3].click(); | |
}, 500); |
. /etc/update-motd.d/50-landscape-sysinfo
OlderNewer