Heard of that GPG is a "Better alternative" than OpenSSL.
# encryption
# this will prompt you password input & confirm
gpg --output encrypted.data --symmetric --cipher-algo AES256 un_encrypted.data
import asyncio | |
import time | |
from concurrent.futures import ThreadPoolExecutor | |
"""Wrap ordinary func to async style, and catch all console signals""" | |
def job(): | |
''' Ordinary func to be wrapped ''' | |
time.sleep(5.0) | |
return 5 |
""" | |
fabfile.py | |
fabric config file. | |
It was for simplicity. I personally don't like to extend this script to more complex to config, read, work | |
usage: | |
Find `Configurations` part to config by all your needs, maybe code adjustment are also needed. |
#/lib/systemd/system/myservice.service | |
# | |
# systemctl daemon-reload | |
# systemctl enable myservice.service | |
# systemctl start myservice.service | |
# | |
[Unit] | |
Description=Service | |
ConditionPathExists=/path/to/web/folder | |
After=network.target |