Skip to content

Instantly share code, notes, and snippets.

View flatcap's full-sized avatar

Richard Russon flatcap

View GitHub Profile
@flatcap
flatcap / bdb.txt
Last active August 23, 2017 12:12
NeoMutt External Function Calls
db_create
db_env_create
// Function
static void clean_references(struct MuttThread *brk, struct MuttThread *cur);
// Original Code
for (ref = cur->message->env->references; p->message && ref; ref = ref->next)
if (mutt_strcasecmp(ref->data, p->message->env->message_id) == 0)
{
done = true;
break;
}
@flatcap
flatcap / inherit.c
Last active September 17, 2018 20:55
inheritance
#include <stdio.h>
/* ---------------------------------- */
#define struct_Named \
char *name
struct Named
{
struct_Named;
@flatcap
flatcap / 2001.txt
Last active April 26, 2017 11:37
Functions in C99, POSIX:2001 and POSIX:2008
a64l
accept
access
aio_cancel
aio_error
aio_fsync
aio_read
aio_return
aio_suspend
aio_write
@flatcap
flatcap / v4.md
Last active November 13, 2016 12:35
Fedora Berkeley DB devel installs

Version 4

Lib

  • libdb4-4.8.30-20.fc24.x86_64.rpm
-rwxr-xr-x 1 root root 1605872 Feb  4  2016 /usr/lib64/libdb-4.8.so
lrwxrwxrwx 1 root root      12 Feb  4  2016 /usr/lib64/libdb-4.so -> libdb-4.8.so

Keybase proof

I hereby claim:

  • I am flatcap on github.
  • I am flatcap (https://keybase.io/flatcap) on keybase.
  • I have a public key whose fingerprint is 69AD 1D63 6AC2 92E8 2065 8C16 EBC1 50E4 B5DA 63DF

To claim this, I am signing this object:

@flatcap
flatcap / mutt-edit.sh
Created August 27, 2016 13:21
Mutt spawn editor
#!/bin/sh
gedit "$1" &
sleep 2
exit 0
@flatcap
flatcap / doc-gen.sh
Last active August 11, 2016 10:51
Generate the neomutt docs
#!/bin/bash
eval REPO="${1:-~/neo-docs}"
cp "$REPO"/doc/chunk.xsl .
cp "$REPO"/doc/manual.xml .
cp "$REPO"/doc/mutt.css .
cp "$REPO"/doc/mutt.xsl .
# The devel features are not merged into neomutt, so insert them now
@flatcap
flatcap / crypto.rc
Last active January 20, 2024 19:04
Mutt config for crypto
# Common Crypto Options
set crypt_auto_encrypt = no # Automatically encrypt all mail
set crypt_auto_pgp = yes # Allow automatic pgp functions
set crypt_auto_sign = no # Automatically sign all mail
set crypt_auto_smime = yes # Allow automatic smime functions
set crypt_confirm_hook = yes
set crypt_opportunistic_encrypt = no
set crypt_reply_encrypt = yes
set crypt_reply_sign = yes
set crypt_reply_sign_encrypted = yes
@flatcap
flatcap / mailbox.rc
Last active August 5, 2016 14:17
Indented mailboxes in NeoMutt
mailboxes "=mutt"
mailboxes "=mutt.arch"
mailboxes "=mutt.debian"
mailboxes "=mutt.dev"
mailboxes "=mutt.kz"
mailboxes "=mutt.neo"
mailboxes "=mutt.suse"
mailboxes "=mutt.travis"
mailboxes "=mutt.users"