find <directory> -iname <filename> # find files
find <directory> -type d -iname <directory-name> # find directory
find . -name "filename" -delete # delete all files with given name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "node_modules" -exec rm -rvf '{}' + |
https://myaccount.google.com/apppasswords
Note: You will need 2FA activated for this to work
Including the CUSTOM_ELEMENTS_SCHEMA in the module allows the use of the web components in the HTML markup without the compiler producing errors
- Defines a schema that allows an NgModule to contain the following:
-
- Non-Angular elements named with dash case (
-
).
- Non-Angular elements named with dash case (
-
- Element properties named with dash case (
-
).
- Element properties named with dash case (
- Dash case is the naming convention for custom elements.
Single line command to group many files into groups of however many. Useful for situations where there are directories with a very large amount of files:
i=0; for f in *; do d=dir_$(printf %03d $((i/100+1))); mkdir -p $d; mv "$f" $d; let i++; done
Running that command inside a directory with 1000 files will create 10 subdirectories with each containing 100 files. Each subdirectory will be names "dir_00{whatever iteration the loop is on".
Breakdown of command: