Skip to content

Instantly share code, notes, and snippets.

@guiniol
guiniol / neomuttrc
Created October 14, 2017 07:30
neomutt/notmuch configuration
set realname = "Guillaume Brogi"
set from = "[email protected]"
set use_from = yes
set user_agent = yes
set sendmail = "/usr/bin/msmtp"
set editor = "nvim +/^$/+1 +':noh'"
set charset = "utf-8"
set send_charset = "utf-8"
set assumed_charset = "utf-8"
@guiniol
guiniol / check-mail.sh
Created October 7, 2017 09:06
fetch mail and apply tags
#!/bin/bash
mbsync -Va
notmuch new --try-decrypt
notmuch tag +neomutt-devel folder:neomutt and tag:tofilter and to:neomutt-devel
notmuch tag +neomutt-users folder:neomutt and tag:tofilter and to:neomutt-users
notmuch tag +github-issues folder:neomutt and tag:tofilter and from:github.com
notmuch tag +vim folder:neomutt and tag:tofilter and 'subject:[vim'
notmuch tag +vim folder:neomutt and tag:tofilter and to:vim-dev
@guiniol
guiniol / neomuttrc.vim
Last active October 2, 2017 18:51
Finished neomuttrc syntax file
" Vim syntax file
" Language: NeoMutt setup files
" Maintainer: Guillaume Brogi <[email protected]>
" Last Change: 2017-09-17
" Original version based on syntax/muttrc.vim
" This file covers NeoMutt 20170912
" quit when a syntax file was already loaded
if exists("b:current_syntax")
#!/usr/bin/python
import sys
import datetime as dt
import khal.settings as settings
import khal.khalendar as khalendar
import khal.cli as cli
import khal.controllers as controllers
@guiniol
guiniol / aliases.muttrc
Last active October 27, 2024 09:44
neomutt configuration with notmuch
alias YOU YOUR NAME <[email protected]>
@guiniol
guiniol / background-xdg-open.sh
Last active December 25, 2020 09:03
offlineimap + notmuch + mutt + gpg + mstmp
#!/bin/bash
xdg-open "$1" &
sleep 1
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.winrm.username = "IEUser"
config.winrm.password = "Passw0rd!"
end
@guiniol
guiniol / publish.rb
Last active October 15, 2015 17:45
Sup publish hook to send ics invites to google calendar
# This hook uses gcalcli to register events with google calendar. You need to configure gcalcli separately for it to work
# Non-calendar attachments are opened using `xdg-open`
require 'shellwords'
case chunk.content_type
when "text/calendar", "application/ics"
r = IO.popen("/usr/bin/gcalcli --nocolor --reminder=10 --detail_url=short --calendar='<your calendar>' import #{Shellwords.escape filename}",
:err => [:child, :out])
flash r.gets

Keybase proof

I hereby claim:

  • I am guiniol on github.
  • I am guiniol (https://keybase.io/guiniol) on keybase.
  • I have a public key whose fingerprint is 5A14 5EA2 4232 980E 243A 2DAC 37CD 4264 4BBC 5F03

To claim this, I am signing this object: