Skip to content

Instantly share code, notes, and snippets.

@eigengrau
eigengrau / mailmon
Created August 16, 2018 08:44
E-mail notifications using IMAP IDLE (no polling)
#!/bin/zsh
#
# Trigger a command when new mail arrives on the server, using IMAP IDLE. Cf.
# <http://dwm.suckless.org/scripts/email_notifier_script>.
#
# Note that, theoretically, fetchmail can take a comma-separated list of
# multiple folders, but IDLE will only poll the first one, so if you need to
# monitor multiple mailboxes, you need to run multiple monitor instances.
#
# Passwords are read from the password store keyring by default.
@eigengrau
eigengrau / firefox-to-org.py
Last active April 19, 2022 07:24
Export Firefox bookmarks to org-mode
#!/usr/bin/env python
# Read a Mozilla places JSON-structure from STDIN and create a directory
# hierarchy of org-mode files containing bookmarks.
# Copyright (c) 2014 Alexey Kutepov a.k.a. rexim
# Copyright (c) 2016 Sebastian Reuße
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
@eigengrau
eigengrau / keybase.md
Created September 7, 2016 13:20
keybase cert

Keybase proof

I hereby claim:

  • I am eigengrau on github.
  • I am eigengrau (https://keybase.io/eigengrau) on keybase.
  • I have a public key whose fingerprint is BE72 7EE4 A962 B51C F1DD 024E 8484 3388 DC48 DCDC

To claim this, I am signing this object: