Skip to content

Instantly share code, notes, and snippets.

View mmk2410's full-sized avatar
Doing creative things.

Marcel Kapfer mmk2410

Doing creative things.
View GitHub Profile
@mmk2410
mmk2410 / twtxt_sendmail.py
Last active September 17, 2019 21:47
twtxt sendmail
#! /usr/bin/env python3
import smtplib
import socket
import getpass
hostname = socket.gethostname()
username = getpass.getuser()
sender = 'twtxt@' + username + '.' + hostname
receivers = ['someone@example.com']
@mmk2410
mmk2410 / buildpdf.sh
Created February 20, 2015 23:43
Automatically build a PDF file from a latex document
#!/bin/bash
# A script for automatically creating PDf files from a latex document
# You can set the amounts of builds and the time between these builds
# Usage: ./buildpdf.sh filename [build amount] [time between builds in s]
# Marcel Michael Kapfer
# 6th January 2015
# GNU GPL v3.0 -> Feel free to re-distribute it or fork it
if [[ -z "$1" ]]; then
echo "Usage: ./buildpdf.sh filename [build amount] [time between builds in s]"
exit 1