Skip to content

Instantly share code, notes, and snippets.

View pesader's full-sized avatar
👣
Contributing to GNOME!

Pedro Sader Azevedo pesader

👣
Contributing to GNOME!
View GitHub Profile
@pesader
pesader / openpgp.md
Last active December 9, 2022 00:41
Keyoxide proof

openpgp4fpr:ADCFE1009EC391E7CC38EC13E7497B22C97FE966

@pesader
pesader / pyrightconfig.json
Last active August 21, 2022 21:20
[Remove annoyances from pyright] The language server pyright is great, but it gives false positives all too often. Paste these lines on your pyrightconfig.json for a quieter coding experience. #python #pyright #lsp
{
"reportGeneralTypeIssues": false,
"reportOptionalMemberAccess": false,
"reportOptionalOperand": false,
"reportOptionalSubscript": false
}
@pesader
pesader / repo-credentials.sh
Created May 1, 2022 03:16
[How to store git credentials per repo] #git #bash
git config --local credential.helper store
@pesader
pesader / tidylatex.sh
Created March 18, 2022 17:54
[Compile LaTeX documents with a separate output directory]
pdflatex --output-dir ./build example.tex
@pesader
pesader / document.tex
Last active February 25, 2022 19:05
[Show reference in bibliography without citing in text] #latex #bibtex
\nocite{johndoe2008}
@pesader
pesader / tables.md
Created February 24, 2022 15:21
[Markdown tables] #markdown
Column name Column name
Row content Row content
Aligment does not matter at all
@pesader
pesader / email.sh
Created February 10, 2022 15:16
[Start a temporary email server with python] #flask #python #smtpd
python -m smtpd -n -c DebuggingServer localhost:8025
@pesader
pesader / tag.sh
Created February 9, 2022 16:06
[Generate ctags for a project] This is useful for "Go to definition" command on Vim #shell #vim
ctags -R .
@pesader
pesader / spliterm.vim
Last active February 8, 2022 19:50
[Split terminal on Neovim] Opens a terminal buffer on a horizontal split #vim
" full command
split | terminal
" abbreviated
spl | te
@pesader
pesader / starship.toml
Last active May 9, 2024 05:22
[Display toolbx information on starship prompt] Show distro and container name on the shell prompt #starship #toolbox #podman
[custom.toolbox]
description = "The activated toolbox container"
command = "echo $(. /var/run/.containerenv; echo ${name}: ${DISTTAG%container})"
when = """ [[ -f /run/.containerenv && -f /run/.toolboxenv ]] """
style = "bold red"
format = "[\\[$output\\]]($style) "
disabled = false