Skip to content

Instantly share code, notes, and snippets.

View jordanst3wart's full-sized avatar
🏠
Working from home

Jordan Stewart jordanst3wart

🏠
Working from home
View GitHub Profile
#!/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
from jinja2 import Environment, FileSystemLoader
import yaml
import os
env = Environment(loader = FileSystemLoader(os.getcwd()), trim_blocks=True, lstrip_blocks=True)
template = env.get_template('somefile.j2')
config_data = yaml.load(open('vars.yml'))
@jordanst3wart
jordanst3wart / about.md
Created January 29, 2020 02:34
example gist

Riley smells

@jordanst3wart
jordanst3wart / wanted-in-shell.md
Created February 15, 2019 03:00
Improvements I'm braining storming for shell based on (zsh/bash)

trade offs slightly more verbose, for being easier to understand

if statement

current




import boto3
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
from botocore.exceptions import ClientError
def send_message(from_email, to_emails, subject, images=[], attachments=[]):
import contextlib
import OpenSSL.crypto
import os
import requests
import ssl
import tempfile
# mostly from another gist