View GrantAccess-WindowsApps.cmd
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
@REM More info: | |
@REM http://caioproiete.net/en/get-access-to-the-programfileswindowsapps-folder-and-view-apps-source-code/ | |
@echo Backing up current folder permissions to a temporary file | |
@icacls "%ProgramFiles%\WindowsApps" /save "%TEMP%\WindowsApps.acl" /Q | |
@if ERRORLEVEL 1 goto rollback | |
@echo Assigning the ownership of the folder to the current logged user | |
@takeown /F "%ProgramFiles%\WindowsApps" | |
@if ERRORLEVEL 1 goto rollback |
View Web.config
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<!-- ... --> | |
<system.webServer> | |
<!-- ... --> | |
<httpProtocol> | |
<customHeaders> | |
<!-- Force the latest IE version, use Chrome frame if available --> | |
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" /> | |
</customHeaders> |
View CleanUp.ps1
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
Write-Host "Cleaning up..." | |
$foldersToRemove = | |
"bin", | |
"obj", | |
"TestResults", | |
"_ReSharper.*" | |
$filesToRemove = | |
"Thumbs.db", |
View Web.config
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="RedirectWwwToNonWww"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^yourwebsite\.com$" negate="true" /> | |
</conditions> |
NewerOlder