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
var modifications = new List<SPWebConfigModification>() | |
{ | |
new SPWebConfigModification("remove[@name='BotDetectCaptachHandler'", | |
"configuration/system.webServer/handlers") | |
{ | |
Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode, | |
Value = @"<remove name='BotDetectCaptchaHandler'/>" | |
}, | |
new SPWebConfigModification("add[@name='BotDetectCaptchaHandler'", | |
"configuration/system.webServer/handlers") |
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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
cinst sysinternals | |
cinst 7zip | |
cinst notepadplusplus | |
cinst atom | |
cinst ulsviewer | |
cinst sharepointdesigner2013x64 | |
cinst dotpeek | |
cinst fiddler4 |
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
# Allow reboots | |
$Boxstarter.RebootOk=$false | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$false | |
# #Essentials | |
Update-ExecutionPolicy Unrestricted | |
# Modify explorer options to Show All Files and extensions | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions |
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
Install-WindowsUpdate -Full | |
# Visual Studio 2015 | |
cinst VisualStudio2015Enterprise | |
cinst VisualStudioCode | |
# VS extensions | |
Install-ChocolateyVsixPackage PowerShellTools https://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/199313/2/PowerShellTools.14.0.vsix | |
Install-ChocolateyVsixPackage WebEssentials2015 https://visualstudiogallery.msdn.microsoft.com/ee6e6d8c-c837-41fb-886a-6b50ae2d06a2/file/146119/40/Web%20Essentials%202015.1%20v1.0.211.vsix | |
Install-ChocolateyVsixPackage T4Toolbox https://visualstudiogallery.msdn.microsoft.com/34b6d489-afbc-4d7b-82c3-dded2b726dbc/file/165481/4/T4Toolbox.14.0.0.76.vsix |
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
# VS extensions | |
Install-ChocolateyVsixPackage PowerShellTools https://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/199313/2/PowerShellTools.14.0.vsix | |
Install-ChocolateyVsixPackage WebEssentials2015 https://visualstudiogallery.msdn.microsoft.com/ee6e6d8c-c837-41fb-886a-6b50ae2d06a2/file/146119/40/Web%20Essentials%202015.1%20v1.0.211.vsix | |
Install-ChocolateyVsixPackage T4Toolbox https://visualstudiogallery.msdn.microsoft.com/34b6d489-afbc-4d7b-82c3-dded2b726dbc/file/165481/4/T4Toolbox.14.0.0.76.vsix | |
Install-ChocolateyVsixPackage StopOnFirstBuildError https://visualstudiogallery.msdn.microsoft.com/91aaa139-5d3c-43a7-b39f-369196a84fa5/file/44205/7/StopOnFirstBuildError.vsix | |
Install-ChocolateyVsixPackage EditorConfig https://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328/file/75539/12/EditorConfigPlugin.vsix |
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
# install mongodb as a service | |
choco install mongodb -n --version=3.2 | |
mkdir c:\data\db | |
mkdir c:\data\log | |
'systemLog:' > c:\data\mongod.cfg | |
' destination: file' >> c:\data\mongod.cfg | |
' path: c:\data\log\mongod.log' >> c:\data\mongod.cfg | |
'storage:' >> c:\data\mongod.cfg | |
' dbPath: c:\data\db' >> c:\data\mongod.cfg | |
&"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --config "c:\data\mongod.cfg" --install |
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
# Allow reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
# #Essentials | |
Update-ExecutionPolicy Unrestricted | |
# Modify explorer options to Show All Files and extensions | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
# Enable-RemoteDesktop |
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
$extensions = | |
"bradygaster.azuretoolsforvscode", | |
"cake-build.cake-vscode", | |
"christian-kohler.npm-intellisense", | |
"eamodio.gitlens", | |
"eg2.tslint", | |
"eg2.vscode-npm-script", | |
"felipecaputo.git-project-manager", | |
"felixfbecker.php-intellisense", |
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
#!/bin/bash | |
APP_FOLDER_LOCATION=/Applications | |
IFS="" | |
## Install applications via brew cask | |
brew_install() { | |
execute="$(brew cask install $1 2>&1)" | |
case $execute in | |
*Warning*|*Error*) echo "Warning while installing $1: $execute" ;; | |
*successfully*) echo "$execute \n Installed $1." ;; |
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
function Set-AwsMfaToken() | |
{ | |
param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string]$TokenCode= $(throw "Please provide the MFA token"), | |
[Parameter(Mandatory=$False,Position=2)] | |
[string]$AwsProfile="<Name of the AWS profile>", | |
[Parameter(Mandatory=$False,Position=3)] | |
[string]$SerialNumber = "<ARN of the IAM principal" | |
) |
OlderNewer