Skip to content

Instantly share code, notes, and snippets.

View infinitecontext's full-sized avatar
👋

Shadi infinitecontext

👋
View GitHub Profile
@infinitecontext
infinitecontext / multiple_ssh_setting.md
Created November 27, 2022 22:09 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@infinitecontext
infinitecontext / strong-password-regex.md
Created November 4, 2019 15:38 — forked from arielweinberger/strong-password-regex.md
Strong password Regular Expression - NestJS Course
  • Passwords will contain at least 1 upper case letter
  • Passwords will contain at least 1 lower case letter
  • Passwords will contain at least 1 number or special character
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/