Skip to content

Instantly share code, notes, and snippets.

View tksunw's full-sized avatar

tim kennedy tksunw

View GitHub Profile
mcdamo /
Last active January 25, 2024 11:22 — forked from HQJaTu/
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
# This program is distributed in the hope that it will be useful, but WITHOUT
turicas /
Last active April 9, 2024 19:56
Send emails easily in Python (with attachments and multipart)
#!/usr/bin/env python
# coding: utf-8
# This little project is hosted at: <>
# Copyright 2011-2020 Álvaro Justen [alvarojusten at gmail dot com]
# License: GPL <>
import os
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText