Skip to content

Instantly share code, notes, and snippets.

View augustoproiete's full-sized avatar
👨‍💻
shipping it :shipit: from home 🏠

C. Augusto Proiete augustoproiete

👨‍💻
shipping it :shipit: from home 🏠
View GitHub Profile
@augustoproiete
augustoproiete / License.txt
Created September 30, 2014 13:00
Example Unofficial NuGet Package for DevExpress Controls
DEVELOPER EXPRESS INC
DEVEXPRESS .NET Controls and Frameworks
Copyright (C) 2000-2014 Developer Express Inc.
END-USER LICENSE AGREEMENT
FOR ALL SOFTWARE DEVELOPMENT PRODUCT(S) INCLUDED IN THIS DISTRIBUTION
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).

Keybase proof

I hereby claim:

  • I am caioproiete on github.
  • I am caioproiete (https://keybase.io/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
augustoproiete / Web.config
Created May 12, 2011 11:34
Redirect www to Non-www using URL Rewrite Module 2.0
<?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>
@augustoproiete
augustoproiete / Web.config
Created May 8, 2012 16:44
Force the latest IE version for every View/Page, use Chrome frame if available
<?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 / App.config
Created October 27, 2015 01:23
Example of using custom prefixes with Serilog when using AppSettings
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="custom1:serilog:minimum-level" value="Warning" />
<add key="custom2:serilog:minimum-level" value="Error" />
</appSettings>
</configuration>
@augustoproiete
augustoproiete / gist:7e37ab5209a1a47d6ab0
Last active November 30, 2015 18:54 — forked from nblumhardt/gist:07c8046ffdcbd3d6b1fa
Configuring Serilog w/ AppSettings and Seq

1. Install Serilog.Extras.AppSettings

PM> Install-Package Serilog.Extras.AppSettings

2. Add the 'read' method to logger config

... = new LoggerConfiguration()
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace Caio.Proiete.Utils
{
public class SilentProcessRunner : IDisposable
{
@augustoproiete
augustoproiete / gist:4958139
Created February 15, 2013 02:23
tracert -h 60 216.81.59.173
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]
@augustoproiete
augustoproiete / testharness.py
Created July 9, 2016 15:01 — forked from tintoy/testharness.py
Logging to Seq from Python 3
#!/usr/bin/env python3
import datetime
import logging
import requests
# Well-known keyword arguments used by the logging system.
_well_known_logger_kwargs = [
"extra",
"exc_info",