Skip to content

Instantly share code, notes, and snippets.

@xairoo
xairoo / Commit_Messages.md
Created January 10, 2025 18:16
Standardized Commit Messages With Conventional Commits

Standardized Commit Messages With Conventional Commits

The Conventional Commits specification is often used to standardize commit messages. The most common types are:

  • feat: New features or functionalities.
    Example: feat: add user authentication module

  • fix: Bug fixes.
    Example: fix: correct login validation error

Limit log size

/etc/systemd/journald.conf

[Journal]
SystemMaxUse=10M
SystemMaxFileSize=10M
SystemMaxFiles=1
@xairoo
xairoo / semantic-commit-messages.md
Created September 17, 2022 09:39 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@xairoo
xairoo / gist:78fc7861605bfb11fa37ba3bafe5a4e1
Last active October 17, 2021 17:06
Sample colored text using svg.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xairoo
xairoo / convert_number_to_scale.js
Last active February 9, 2022 06:37
Reduce a number and add thousand, million, billion, trillion, quadrillion, ... return an object with the number and the scale
function numberToScale(number) {
const scales = [
'',
'thousand',
'million',
'billion',
'trillion',
'quadrillion',
'quintillion',
'sextillion',