import sys
import logging
from logging.handlers import RotatingFileHandler
stderr_handler = logging.StreamHandler(sys.stderr)
rotate_handler = RotatingFileHandler("logs/rotate.log", maxBytes=5000000, backupCount=10)- Clone and install SDK
- save
$EMSDKas environment var in your.profile/.zprofile/.bashrc/zshrcto make it easier later installwill run for a long time
- save
git clone --depth=1 --recurse-submodules --shallow-submodules https://github.com/emscripten-core/emsdk.git
cd emsdk
export EMSDK=$(pwd) # save in you .profile or .bashrc/.zshrc
$EMSDK/emsdk install --shallow sdk-main-64bit # this takes a long timesudo apt update
sudo apt install python3 python3-venv libaugeas0
# remove if installed from package manager, use python version
# sudo apt-get remove certbot
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot certbot-nginxHelper function that prints all variables matching pattern
function(print_cmake_variables_matching pattern)
get_cmake_property(_variableNames VARIABLES)
string(TOLOWER "${pattern}" pattern_lower)
foreach (_variableName ${_variableNames})
string(TOLOWER "${_variableName}" variable_lower)
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 smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| class Email: | |
| def __init__(self, from_: str, to: list[str], subject: str): | |
| self.from_ = from_ | |
| self.to = to |
NewerOlder