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
db.collection.aggregate( | |
[ | |
{ "$addFields": { | |
"name": { "$concat": [ "$firstName", " ", "$lastName" ] } | |
}}, | |
{ "$out": "collection" } | |
] | |
) |
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
// range | |
const range = length => Array.from({ length: length }, (_, key) => key); |
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
Prerequisite: | |
Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools | |
Script: | |
Set-ADAccountPassword -Identity **user-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
robocopy D:\test F:\test /MIR /FFT /R:3 /W:10 /Z /NP /NDL /XJD /MT[:8] | |
# https://superuser.com/questions/814102/robocopy-command-to-do-an-incremental-backup |
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
console.log(`Here's a green, bold value: %c${value}`, "color: green; font-weight: bold;"); |