Skip to content

Instantly share code, notes, and snippets.

@guiniol
guiniol / neomuttrc
Created Oct 14, 2017
neomutt/notmuch configuration
View neomuttrc
set realname = "Guillaume Brogi"
set from = "gui-gui@netcourrier.com"
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 Oct 7, 2017
fetch mail and apply tags
View check-mail.sh
#!/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 Oct 2, 2017
Finished neomuttrc syntax file
View neomuttrc.vim
" Vim syntax file
" Language: NeoMutt setup files
" Maintainer: Guillaume Brogi <gui-gui@netcourrier.com>
" 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")
View next-event.py
#!/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 May 16, 2021
neomutt configuration with notmuch
View aliases.muttrc
alias YOU YOUR NAME <email@somewhere.com>
@guiniol
guiniol / background-xdg-open.sh
Last active Dec 25, 2020
offlineimap + notmuch + mutt + gpg + mstmp
View background-xdg-open.sh
#!/bin/bash
xdg-open "$1" &
sleep 1
View Vagrantfile
# -*- 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 Oct 15, 2015
Sup publish hook to send ics invites to google calendar
View publish.rb
# 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
View keybase.md

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: