Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
troyfontaine / 1-setup.md
Last active December 11, 2024 04:22
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@wojteklu
wojteklu / clean_code.md
Last active December 11, 2024 17:07
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@marko-jankovic
marko-jankovic / CSS and HTML interview questions.md
Last active December 7, 2024 06:05
CSS and HTML interview questions

1. HTML Fundamentals

HTML Structure and Semantics

  • What is HTML?
    HTML (Hypertext Markup Language) is the standard language used to create and design documents on the web. It structures content using elements or tags.

  • What are the building blocks of HTML5?
    The building blocks of HTML5 include elements like <header>, <footer>, <section>, <article>, and <nav> which enhance semantic meaning and accessibility.

  • What is the purpose of the `` element in HTML?