Skip to content

Instantly share code, notes, and snippets.

View schubev's full-sized avatar

Victor Schubert schubev

View GitHub Profile
@schubev
schubev / libmail.sh
Last active May 18, 2021 10:00
Unholy bash e-mail generation library
#!/bin/bash
MAIL_WIDTH=76
function mail_example() {
From alice@example.com
To bob@example.com
Subject "Look at my test email!"
header_message_id
header_date_now
@schubev
schubev / expiredmail.pl
Created September 5, 2018 14:51
Null-separated list of old mails from maildir mailboxes.
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(say);
use File::Spec::Functions 'catfile';
use Date::Parse;
my $keep_for_seconds = 60 * 60 * 24 * 60;
my $mail_root = '/home/schube/Mail';
@schubev
schubev / pgpcronmail.sh
Last active June 18, 2017 22:41
Wrapper for cron tasks to send e-mails with PGP/MIME encryption
from=$USER@$(hostname -f)
to=$MAILTO
out=$(mktemp)
err=$(mktemp)
started=$(date)
"$@" > $out 2> $err
@schubev
schubev / ttg.py
Last active January 20, 2017 17:16
Truth Table Generator
#!/usr/bin/env python3
"""
This module will build truth tables from logic expressions. It is intended to
be used with the Python REPL.
"""
import abc
import itertools
import random
import sys

Keybase proof

I hereby claim:

  • I am schubev on github.
  • I am schube (https://keybase.io/schube) on keybase.
  • I have a public key whose fingerprint is 43D7 177B 5FF0 35BD 3187 86E9 F8DD 94AF C51B F7C7

To claim this, I am signing this object:

@schubev
schubev / protonmail.css
Last active December 31, 2016 13:40
Protonmail stylesheet
/* For Protonmail v3.6.9 */
/* More compact inbox */
.conversation {
height: 50px;
}
.conversation .pm_labels {
bottom: 6px !important;
}
@schubev
schubev / ergodox-bepo.kll
Last active May 20, 2016 19:39
Kiibohd/KLL key remap for Ergodox and BÉPO.
Name = "Schube";
Layout = "Standard";
Version = "1";
Author = "schube";
KLL = "0.3";
Date = "2016-05-18";
# LEFT HAND
# Top Row