Caio Proiete CaioProiete

View gist:4958139
1 2 3 4 5 6 7 8 9 10
Tracing route to FIN [216.81.59.173]
over a maximum of 60 hops:
 
1 1 ms <1 ms <1 ms 192.168.42.1
2 11 ms 8 ms 37 ms 216.249.32.150
3 15 ms 28 ms 22 ms 66.55.118.63
4 22 ms 14 ms 17 ms eHEX-ce-01.northrock.bm [66.55.117.47]
5 106 ms 157 ms 344 ms eNYC-ce-01.northrock.bm [66.55.117.50]
6 62 ms 52 ms 52 ms core1.nyc4.he.net [198.32.118.57]
7 57 ms 50 ms 44 ms 10gigabitethernet2-3.core1.ash1.he.net [72.52.92.86]
View GrantAccess-WindowsApps.cmd
1 2 3 4 5 6 7 8 9 10
@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
1 2 3 4 5 6 7 8 9 10
<?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
1 2 3 4 5 6 7 8 9 10
Write-Host "Cleaning up..."
 
$foldersToRemove =
"bin",
"obj",
"TestResults",
"_ReSharper.*"
 
$filesToRemove =
"Thumbs.db",
View Web.config
1 2 3 4 5 6 7 8 9 10
<?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>
Something went wrong with that request. Please try again.