Skip to content

Instantly share code, notes, and snippets.

View lucalves's full-sized avatar

Lucas Alves lucalves

View GitHub Profile
@lucalves
lucalves / common-regex.md
Last active June 22, 2022 17:57
List of most common REGEX expressions (validated)

Use https://regex101.com/ to validate the expressions.

  1. Simple numbers only (no decimal and no fractions)
^(\d+)$
  1. Decimal numbers
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json}": [
"prettier src --write",
"eslint src --fix",
"git add"
]
}

Nest.js Cheatsheet

Nest CLI

  • npm i -g @nestjs/cli

Packages

  • yarn add class-validator class-transformer
  • yarn add @nestjs/mapped-types
@lucalves
lucalves / xcrun_simctl_cheatsheet.md
Last active February 21, 2024 03:30
CheatSheet to manage iOS simulators through simctl.

Managing iOS Simulators

List all simulators created

$ xcrun simctl list --json

Delete old and unavailable simulators

$ xcrun simctl delete unavailable