Skip to content

Instantly share code, notes, and snippets.

View kyung-lee-official's full-sized avatar
🚀

Kyung Lee kyung-lee-official

🚀
  • Shenzhen, China
  • 07:19 (UTC -12:00)
View GitHub Profile
@bennlee
bennlee / wildcards-in-paths.md
Last active June 4, 2024 14:09
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.
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active May 23, 2024 15:32
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

@arielweinberger
arielweinberger / strong-password-regex.md
Last active June 12, 2024 09:45
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]).*$/
@evantoli
evantoli / GitConfigHttpProxy.md
Last active June 13, 2024 15:17
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: