Skip to content

Instantly share code, notes, and snippets.

View flatcap's full-sized avatar

Richard Russon flatcap

View GitHub Profile
@flatcap
flatcap / combined.md
Last active April 24, 2024 08:28
NeoMutt's 20 Largest Functions

Mutt's / NeoMutt's 20 Largest Functions

Mutt 2024-04-23 NeoMutt 2023-04-30 NeoMutt 2024-03-21
11465 Total Lines
@flatcap
flatcap / README.txt
Last active October 30, 2024 14:42
code scanning
Issues:
https://github.com/neomutt/neomutt/security/code-scanning
How to use gh api:
https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-alerts-for-a-repository
# Download 4 pages of 100 issues
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "/repos/neomutt/neomutt/code-scanning/alerts?state=open&per_page=100&page=1" | json_reformat > s1.json
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "/repos/neomutt/neomutt/code-scanning/alerts?state=open&per_page=100&page=2" | json_reformat > s2.json
@flatcap
flatcap / pr.ql
Created October 4, 2023 14:49
get pr commits
query($pr_num: Int!)
{
organization(login: "neomutt") {
repository(name: "neomutt") {
pullRequest(number: $pr_num) {
commits(first: 10) {
nodes {
commit {
oid
}
@flatcap
flatcap / t1
Last active September 25, 2023 11:06
neomutt mail check interval
set timeout = 5
set mail_check = 20
set mail_check_stats_interval = 60
timeout 5
maildir_mbox_check() - mail/inbox
timeout 5
maildir_mbox_check() - mail/inbox
@flatcap
flatcap / README.md
Last active August 24, 2023 09:36
neomutt: base header files included by libraries

NeoMutt Library Includes

This is a list of every library source file */*.c that includes a header file from the base directory, e.g. format_flags.h

@flatcap
flatcap / README.md
Last active July 17, 2023 10:40
neomutt key bindings

NeoMutt Keybindings

These files contain a summary of NeoMutt's keybindings.

k1: Top-Level functions

k1 lists all of the top-level functions that handle keystrokes, e.g. mw_get_field(), dlg_compose().

Each lists the opcodes they support, e.g. OpCompose, and all the function dispatchers that they use, e.g. env_function_dispatcher()

@flatcap
flatcap / flatcap.gpg.pub
Created July 10, 2023 11:32
Richard Russon (flatcap), updated GPG keys
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFYq31ABEADEP2iRFQRpZBHuS/iA9gRaPfkdD+cAAtBB8Wzlmmkl0Ld57zDv
6zLEHlKuMEVzzHM8RXmRba9guR+AJlSa4/ztayZl+ucziGJMni2nzB5A7a2BYQUY
U2uWNP50cFg3vg9aencMkXMN8+33Vu2IURUf4iqnHy/GHuxcOpf0QAS1Ix+C5ObK
SuxCUS3POoUowMA2O8T2oBbfE0ldEtr8QMPL9jdAywW4ZKTP/hGSiyDus80u7ACf
myuTETm//9eHbTvH6Vdr4o6/OVdxt2X0JhWeWJq0S0cWIXI/DLnwET1rfnwxTggZ
XhRItoYvgL8uJw3bskPEQIJUFbCHDiHQZ0ys1EDBCbL84MOfSWA/t39U5mAXvQc7
1+IIfdAYrTks8Xmk7RTnMHcRhKlIGbLsdKWQBiFBf7BqLgQBA4xzSMW0dkVXHxQu
v10m/uS3kC3s+XtgJIA7nUzMHPo4sJ6NvbJDe0V9lcqqFzgfRnyeb61viSpAtb56
@flatcap
flatcap / calendar.rc
Created June 1, 2023 08:46
neomutt sidebar calendar
set sidebar_visible = yes
set sidebar_width = 22
set sidebar_divider_char = ""
named-mailboxes " June 2023 " fake1
named-mailboxes "Mo Tu We Th Fr Sa Su" fake2
named-mailboxes " 1 2 3 4" fake3
named-mailboxes " 5 6 7 8 9 10 11" fake4
named-mailboxes "12 13 14 15 16 17 18" fake5
named-mailboxes "19 20 21 22 23 24 25" fake6
@flatcap
flatcap / buf-renames.sh
Created April 15, 2023 01:03
struct Buffer function renames
git mv test/buffer/mutt_buffer_addch.c test/buffer/buf_addch.c
git mv test/buffer/mutt_buffer_addstr.c test/buffer/buf_addstr.c
git mv test/buffer/mutt_buffer_addstr_n.c test/buffer/buf_addstr_n.c
git mv test/buffer/mutt_buffer_add_printf.c test/buffer/buf_add_printf.c
git mv test/buffer/mutt_buffer_alloc.c test/buffer/buf_alloc.c
git mv test/buffer/mutt_buffer_concatn_path.c test/buffer/buf_concatn_path.c
git mv test/buffer/mutt_buffer_concat_path.c test/buffer/buf_concat_path.c
git mv test/buffer/mutt_buffer_copy.c test/buffer/buf_copy.c
git mv test/buffer/mutt_buffer_dealloc.c test/buffer/buf_dealloc.c
git mv test/buffer/mutt_buffer_fix_dptr.c test/buffer/buf_fix_dptr.c
@flatcap
flatcap / c2
Created April 13, 2023 12:59
config usage
address/idna.c:127: idn_decode
address/idna.c:140: charset
address/idna.c:237: charset
address/idna.c:245: idn_encode
alias/alias.c:173: use_domain
alias/alias.c:191: config_charset
alias/alias.c:192: charset
alias/alias.c:501: alias_file
alias/alias.c:610: from
alias/commands.c:119: debug_level