I like to start a bug fix by:
$ git commit -a -s --allow-empty -m "Fixes: 1085b8276bb4 (\"tpm: Add the rest of the session HMAC API\")"
[auth-null d5d3411b52f7] Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
$ git show
commit d5d3411b52f741cb16cfb7180d24f454e97b4570 (HEAD -> auth-null)
Author: Jarkko Sakkinen <jarkko@kernel.org>
Date: Wed Jul 3 18:47:46 2024 +0300
Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
So that I get the fixes-line backed up fast :-) Then I just amend the meat.
For generating the fixes line I have:
git-fixes() {
git --no-pager log --format='Fixes: %h ("%s")' --abbrev=12 -1 $1;
}
My initial ~/.vimrc for #vim after 3-4 years of using #neovim:
filetype plugin indent on
syntax enable
let g:mapleader = ","
set autoindent
set autoread
set formatoptions+=j
set guifont=MesloLGM\ Nerd\ Font\ Mono\ 12
set hidden
set history=500
set hlsearch
set listchars=tab:→\ ,trail:•,extends:›,precedes:‹,nbsp:␣,eol:↲
set nobackup
set nonumber
set noswapfile
set nowrap
set path+=**
set scrolloff=1
set showbreak=↪\
set showmatch
set sidescroll=1
set smarttab
set tags=./tags;/
set termguicolors
nnoremap <silent> <C-l> :nohl<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
nnoremap <silent> <leader>lcd :lcd %:p:h<CR>:pwd<CR>
nnoremap <silent> <leader>n :set number!<CR>
if !empty(globpath(&rtp, 'autoload/plug.vim'))
call plug#begin()
Plug 'ap/vim-buftabline', { 'as': 'buftabline' }
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'editorconfig/editorconfig-vim', { 'as': 'editorconfig' }
Plug 'kaarmu/typst.vim', { 'as': 'typst' }
Plug 'tpope/vim-commentary', { 'as': 'commentary' }
Plug 'vim-scripts/git_patch_tags.vim', { 'as': 'git_patch_tags' }
call plug#end()
endif
silent! colorscheme dracula
It’s quite short but does pretty much what I would ever want from a text editor:
$ wc -l .vimrc
42 .vimrc
The OpenAI ChatGPT app on macOS is not sandboxed and stores all the conversations in **plain-text** in a non-protected location:
~/Library/Application\ Support/com.openai.chat/conversations-{uuid}/
So basically any other running app / process / malware can read all your ChatGPT conversations without any permission prompt:
Generally speaking, C is pretty straightforward. It takes about 20 days to learn 80% of it, and then no more than 20 years to cover the remaining 20%
This is still IMHO a strong merit in #GNOME #Evolution, when having multiple identities.
In my case, I use a sub-address (RFC 5233) for bouncing kernel.org but it shares the account with my personal email address. Identities map to envelope addresses, and based on that msmtp will pick the correct SMTP server.
msmtp also allows to share SMTP configuration with #Git. E.g. for a freshly cloned repository, I might for instance:
git config from "Jarkko Sakkinen <jarkko@kernel.org>"
git config sendemail.envelopeSender "jarkko@kernel.org"
git config sendemail.sendmailCmd "/usr/bin/env msmtp"