Skip to content

Instantly share code, notes, and snippets.

View kyung-lee-official's full-sized avatar
🎯
Focusing

Kyung Lee kyung-lee-official

🎯
Focusing
  • Shenzhen, China
  • 11:01 (UTC +08:00)
View GitHub Profile
@evantoli
evantoli / GitConfigHttpProxy.md
Last active April 22, 2025 04:32
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@arielweinberger
arielweinberger / strong-password-regex.md
Last active April 10, 2025 18:43
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]).*$/
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active April 13, 2025 18:55
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@bennlee
bennlee / wildcards-in-paths.md
Last active December 19, 2024 08:02
What does the double asterisk(**) mean in the path?

What does the double asterisk(**) mean in the path?

There's two meaning of wildcards in paths for file collections.

  • * is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names.
  • ** is a recursive wildcard which can only be used with paths, not file names.

For examples,

  • /var/log/** will match all files in /var/log and all files in all child directories, recursively.
  • /var/log/**/*.log will match all files whose names end in .log in /var/log and all files in all child directories, recursively.
  • /home/*/.bashrc will match all .bashrc files in all user's home directories.