Skip to content

Instantly share code, notes, and snippets.

shipping it :shipit: from home 🏠

C. Augusto Proiete augustoproiete

shipping it :shipit: from home 🏠
View GitHub Profile
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"?>
<rule name="RedirectWwwToNonWww">
<match url="(.*)" />
<add input="{HTTP_HOST}" pattern="^yourwebsite\.com$" negate="true" />
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 =
$filesToRemove =
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"?>
<!-- ... -->
<!-- ... -->
<!-- Force the latest IE version, use Chrome frame if available -->
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
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:
@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 / gist:4958139
Created Feb 15, 2013
tracert -h 60
View gist:4958139
Tracing route to FIN []
over a maximum of 60 hops:
1 1 ms <1 ms <1 ms
2 11 ms 8 ms 37 ms
3 15 ms 28 ms 22 ms
4 22 ms 14 ms 17 ms []
5 106 ms 157 ms 344 ms []
6 62 ms 52 ms 52 ms []
7 57 ms 50 ms 44 ms []
augustoproiete / License.txt
Created Sep 30, 2014
Example Unofficial NuGet Package for DevExpress Controls
View License.txt
DEVEXPRESS .NET Controls and Frameworks
Copyright (C) 2000-2014 Developer Express Inc.
IMPORTANT- READ CAREFULLY: This DEVELOPER EXPRESS INC ("DEVEXPRESS") End-User License Agreement ("EULA") is a legal agreement between you, a developer of software applications, ("Developer End User") and DEVEXPRESS for all DEVEXPRESS products, frameworks, components, source code, demos, intermediate files, media, printed materials, and "online" or electronic documentation ("SOFTWARE DEVELOPMENT PRODUCT(S)") contained in this distribution.
By installing, copying, or otherwise using the SOFTWARE DEVELOPMENT PRODUCT(S), you agree to be bound by the terms of this EULA. If you do not agree to any part of the terms of this EULA, DO NOT INSTALL, COPY, USE, EVALUATE, OR REPLICATE IN ANY MANNER, ANY PART, FILE OR PORTION OF THE SOFTWARE DEVELOPMENT PRODUCT(S).
augustoproiete / gist:7e37ab5209a1a47d6ab0
Last active Nov 30, 2015 — forked from nblumhardt/gist:07c8046ffdcbd3d6b1fa
Configuring Serilog w/ AppSettings and Seq
View gist:7e37ab5209a1a47d6ab0

1. Install Serilog.Extras.AppSettings

PM> Install-Package Serilog.Extras.AppSettings

2. Add the 'read' method to logger config

... = new LoggerConfiguration()
augustoproiete / teamcity-metarunner-to-use-special-version-for-nuget.xml
Last active Mar 24, 2021
Example of a TeamCity meta-runner that updates the build.version variable and provides other variants of version variables, such as a special version for NuGet
View teamcity-metarunner-to-use-special-version-for-nuget.xml
<?xml version="1.0" encoding="UTF-8"?>
<meta-runner name="Meta (CaioProiete): Initialize build and set custom parameters">
<description>Initialize the build and set the value of some custom parameters that can be used during the build, such as version, timestamp, and others</description>
<param name="mr.initialize_build.releaseBranch" value="%build.releaseBranch%" spec="text label='Release Branch:' description='The name of the branch from where production releases are generated' display='normal' validationMode='not_empty'" />
<param name="mr.initialize_build.verbose" value="SilentlyContinue" spec="checkbox checkedValue='Continue' description='Log verbose messages?' display='normal' label='Verbose:' uncheckedValue='SilentlyContinue'" />
<runner name="Initialize build and set custom parameters" type="jetbrains_powershell">

Keybase proof

I hereby claim:

  • I am caioproiete on github.
  • I am caioproiete ( on keybase.
  • I have a public key whose fingerprint is 06E3 2C7B EE28 4DE5 F315 B43B 8BB1 65D1 FD13 745D

To claim this, I am signing this object:

augustoproiete / App.config
Created Oct 27, 2015
Example of using custom prefixes with Serilog when using AppSettings
View App.config
<?xml version="1.0" encoding="utf-8" ?>
<add key="custom1:serilog:minimum-level" value="Warning" />
<add key="custom2:serilog:minimum-level" value="Error" />