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
# | |
# With help from : https://github.com/jonbiemond | |
# | |
# requires: | |
# pip install flask flask_sqlalchemy | |
# | |
# run: flask --app sqlalchemy_to_josnable_dict.py init-db | |
# run: flask --app sqlalchemy_to_josnable_dict.py test-data | |
# run: flask --app sqlalchemy_to_josnable_dict.py get-user1 | |
# run: flask --app sqlalchemy_to_josnable_dict.py get-user2 |
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
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from pathlib import Path | |
from smtplib import SMTP | |
from smtplib import SMTPException | |
from ssl import create_default_context | |
from typing import Optional, Union | |
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 | |
# easily "docker exec" into a running Docker container | |
# latest version: https://gist.github.com/ljm42/2b3bfd8ff886015bbce8 | |
# for unRAID, place this script on your flash drive as /boot/custom/docker-shell | |
# then add this to your go script (without the leading pound sign): | |
# cp /boot/custom/docker-shell /usr/local/bin | |
CONTAINERS=`docker ps | awk 'NR==1 {offset=index($0,"NAMES")};NR>1{print substr($0,offset)}' | sort -f | tr "\n" " "` |