First, create a mongod config file. e.g.
# Where and how to store data.
storage:
dbPath: /data/db
journal:
enabled: true
🤬 |
javascript:window.open(`https://builtwith.com/${(new URL(location.href)).hostname}`, "_blank"); |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
RUNAS /trustlevel:"0x20000" powershell |
First, create a mongod config file. e.g.
# Where and how to store data.
storage:
dbPath: /data/db
journal:
enabled: true
const isObject = (obj: any) => obj && typeof obj === 'object'; | |
const deepMergeInner = (target: any, source: any) => { | |
Object.keys(source).forEach((key: string) => { | |
const targetValue = target[key]; | |
const sourceValue = source[key]; | |
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { | |
target[key] = targetValue.concat(sourceValue); | |
} else if (isObject(targetValue) && isObject(sourceValue)) { |
mongoContainerOutput="/path/to/container/output/folder" | |
hostOutput="/path/to/host/output/folder" | |
mongoUser="root" | |
mongoPassword='mongo-db-user-password' | |
mongoHost="127.0.0.1:27017" | |
mongoCollectionAuth="admin" | |
mongoCollectionDB="dbCollectionName" | |
dockerContainer="mongo_5_1" |
filesToCopy=("initramfs-linux-lts-fallback.img" "initramfs-linux-lts.img" "vmlinuz-linux-lts") | |
for file in ${filesToCopy[@]}; do | |
cp /boot/$file /boot/efi/EFI/arch/ | |
done |
directory="/mnt/c/workspace" | |
fileEntries=`ls $directory` | |
for file in ${fileEntries[@]} | |
do | |
if [[ -L "$directory/$file" ]] | |
then | |
sudo mkdir -p /mnt/$file | |
sudo mount -t drvfs C:\\workspace\\$file /mnt/$file -o metadata,uid=1000,gid=1000,umask=22,fmask=002 | |
fi |
/** | |
* Sets a value of nested key string descriptor inside a Object. | |
* It changes the passed object. | |
* Ex1: | |
* let obj = {a: {b:{c:'initial'}}}; | |
* setNestedKey(obj, ['a', 'b', 'c'], 'changed-value'); | |
* assert(obj === {a: {b:{c:'changed-value'}}}); | |
* | |
* Ex2: | |
* let obj = null; |