PS> New-Item -Type file -Force $profile
This file contains hidden or 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
| FOR /d /r . %d in (DIR_NAME_HERE) DO @IF EXIST "%d" echo %d && RMDIR /S /Q %d" |
find . -name 'directory_to_delete' -type d -prune -exec rm -rf '{}' +
...or...
npm install --g trash-cli
This file contains hidden or 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
| npm list -g --depth 0 |
This file contains hidden or 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
| /** | |
| * getClosest | |
| * | |
| * Find the closest element to the target element | |
| * | |
| * @param target - dom element which is the current element | |
| * @param selector - the element you are looking for | |
| * @param scope - limit the search to a containing element | |
| * @returns {*} | |
| */ |
This file contains hidden or 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
| Get-CimInstance Win32_Process -Filter "Name = 'chrome.exe' AND CommandLine LIKE '%--headless%'" | %{Stop-Process $_.ProcessId} |
This file contains hidden or 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
| https://stackoverflow.com/questions/50976979/output-2-or-more-css-files-with-mini-css-extract-plugin-in-webpack |
This file contains hidden or 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
| **/node_modules | |
| **/bower_components | |
| ./public | |
| ./coverage |
This file contains hidden or 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
| Tell Mercurial you're renaming (not deleting) a file so it keeps the history | |
| If you've already moved/renamed the file: | |
| $ hg rename --after old-file.txt new-file.tx | |
| $ hg rename --after olddir newdir | |
| If you'd like Mercurial to rename the file for you | |
| $ hg rename old-file.txt new-file.tx | |
| $ hg rename olddir newdir |
This file contains hidden or 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
| (function(d, s, id){ | |
| var js, fjs = d.getElementsByTagName(s)[0]; | |
| if (d.getElementById(id)){ return; } | |
| js = d.createElement(s); js.id = id; | |
| js.onload = function(){ | |
| // remote script has loaded | |
| }; | |
| js.src = "//domain.com/index.js"; | |
| fjs.parentNode.insertBefore(js, fjs); | |