Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
shipping it :shipit: from home 🏠

C. Augusto Proiete augustoproiete

👨‍💻
shipping it :shipit: from home 🏠
View GitHub Profile
@augustoproiete
augustoproiete / GrantAccess-WindowsApps.cmd
Created Oct 12, 2012
Get access to the %ProgramFiles%\WindowsApps folder and view apps source code
View GrantAccess-WindowsApps.cmd
@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
@augustoproiete
augustoproiete / Web.config
Created May 8, 2012
Force the latest IE version for every View/Page, use Chrome frame if available
View Web.config
<?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>
@augustoproiete
augustoproiete / CleanUp.ps1
Created Dec 12, 2011
PowerShell script to remove files generated by Visual Studio, ReSharper, etc...
View CleanUp.ps1
Write-Host "Cleaning up..."
$foldersToRemove =
"bin",
"obj",
"TestResults",
"_ReSharper.*"
$filesToRemove =
"Thumbs.db",
@augustoproiete
augustoproiete / Web.config
Created May 12, 2011
Redirect www to Non-www using URL Rewrite Module 2.0
View Web.config
<?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>