- upstart (tested on Ubuntu 14.04)
- ngrok
- ssmtp
- jq
I was getting SSL verification issues on my Ubuntu 18.04 machine because I was missing a root CA cert.
Let's call the new CA cert some-cert.pem
.
I followed the first answer on this post:
cp some-cert.pem /usr/local/share/ca-certificates/some-cert.crt
sudo update-ca-certificates
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 imaplib import IMAP4_SSL | |
import email | |
# Usage: python list_emails.py <hostname> <user> <password> | |
# https://stackoverflow.com/questions/2230037/how-to-fetch-an-email-body-using-imaplib-in-python | |
# Was very helpful meaning I probably copied code from there | |
def list_emails(hostname, user, password): | |
try: |
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
"""Script checks to see if all files in src exists in dest""" | |
import os | |
import subprocess | |
def does_file_exist(dest: str, name: str): | |
"""Checks if the file exists | |
Approach was taken from |
Using jq
is great for examining JSON objects. You can extend its functionality with custom methods. The following is useful to understand at a high level the structure of arbitrary JSONs which is useful when trying to understand new data sources.
Requires jq
verison 1.5.
Add the following method to your ~/.jq
: