Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️
Busy building things

Claudiu Constantin claudiuconstantin

🖥️
Busy building things
View GitHub Profile
@claudiuconstantin
claudiuconstantin / script.js
Created Aug 3, 2018
Mongo 3.4+ $out collection
View script.js
db.collection.aggregate(
[
{ "$addFields": {
"name": { "$concat": [ "$firstName", " ", "$lastName" ] }
}},
{ "$out": "collection" }
]
)
View SimpleUtils.ts
// range
const range = length => Array.from({ length: length }, (_, key) => key);
View gist:932e661051bb2c787495058cdccfe247
Prerequisite:
Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools
Script:
Set-ADAccountPassword -Identity **user-name**
View Robocopy scripts
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
@claudiuconstantin
claudiuconstantin / consoleLog.txt
Created Jul 20, 2017
Formatting Chrome console output
View consoleLog.txt
console.log(`Here's a green, bold value: %c${value}`, "color: green; font-weight: bold;");