Skip to content

Instantly share code, notes, and snippets.

@MohammedEsafi
MohammedEsafi / export-and-import-gpg-keys-guide.md
Created March 9, 2025 18:13
Instructions to export, archive, and restore GPG keys

Managing your GPG keys: export and import guide

Exporting GPG keys


1. List your GPG keys

To identify the keys you want to export, run:

@MohammedEsafi
MohammedEsafi / git-hooks-toggle.md
Last active March 14, 2025 10:08
A concise guide to toggling Git hooks on and off by modifying the core.hooksPath configuration

Toggle Git Hooks activation and deactivation using these commands.

  • Disable git hooks
git config core.hooksPath no-hooks
  • Re-enable git hooks
git config --unset core.hooksPath
@MohammedEsafi
MohammedEsafi / .gitignore
Created October 30, 2023 15:25 — forked from wojtekmaj/.gitignore
How to upgrade Yarn to Yarn Modern (v4 at the moment) seamlessly
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

Commit Message Guidelines

Effective and organized commit messages are essential for maintaining a coherent project history. This document provides a structured and comprehensive guide to crafting commit messages.

1. Commit Message Format

Each commit should have the format:

[optional scope]: 
.name "Norman"
.comment "The promised Neverland is so good!"
sti r1, %12, %1 # 7 bytes
xor r1, r1, r1 # 5
live %12 # 5
zjmp %-5 # 3
# 0b 68 01 00 0c 00 01 08 54 01 01 01 01 00 00 00 0c 09 ff fb