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
Install-WindowsUpdate -AcceptEula -SuppressReboots | |
# Windows configuration | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableOpenFileExplorerToQuickAccess -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder -EnableShowRibbon | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Full | |
Update-ExecutionPolicy Unrestricted |
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
Install-WindowsUpdate -AcceptEula -SuppressReboots | |
# Windows configuration | |
Disable-InternetExplorerESC | |
Disable-GameBarTips | |
Disable-UAC | |
Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableOpenFileExplorerToQuickAccess -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder -EnableShowRibbon | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Full | |
Update-ExecutionPolicy Unrestricted |
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
var mongo = db.getMongo(); | |
function bytesToSize(bytes) { | |
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; | |
if (bytes == 0) return '0 Byte'; | |
var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); | |
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i]; | |
} | |
function getCollectionStatsFor(dbName, sort) { |
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
# Windows configuration | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Update-ExecutionPolicy Unrestricted | |
choco feature enable -n=allowGlobalConfirmation | |
# Install programs |
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
Install-WindowsUpdate -AcceptEula -SuppressReboots | |
# Windows configuration | |
# Disable-InternetExplorerESC | |
# Disable-GameBarTips | |
# Disable-UAC | |
# Enable-RemoteDesktop | |
# Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableOpenFileExplorerToQuickAccess -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder -EnableShowRibbon | |
# Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Full | |
# Update-ExecutionPolicy Unrestricted |