Skip to content

Instantly share code, notes, and snippets.

View accdias's full-sized avatar

Antonio Dias accdias

View GitHub Profile
@accdias
accdias / algebric-identities.md
Last active January 15, 2025 00:21
Personal notes

Common algebric identities:

This sentence uses $` and `$ delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$

  • $(a+b)^2 = a^2 + 2ab + b^2$
  • $(a-b)^2 = a^2 - 2ab + b^2$
  • $a^2+b^2 = (a+b)^2 - 2ab$
  • $a^2-b^2 = (a+b) - (a-b)$
  • $(a+b+c)^2 = (a^2 + b^2 + c^2) + 2(ab + ac + bc)$
@accdias
accdias / vw.md
Last active May 30, 2024 15:12
Create a VaultWarden container on OL9

Installation

  1. Install podman
sudo dnf install -y podman
  1. Create the service directory to store data and configurations
sudo mkdir -p /srv/vw01/data
@accdias
accdias / gpg-ssh-setup.md
Created February 8, 2023 14:41 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@accdias
accdias / vim-cheatsheet.md
Created April 18, 2019 12:25 — forked from azadkuh/vim-cheatsheet.md
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...