Skip to content

Instantly share code, notes, and snippets.

View syed-ahmad's full-sized avatar
Working

Syed Ahmad syed-ahmad

Working
View GitHub Profile
@nikanos
nikanos / app.config
Created October 4, 2021 08:46
.NET Configuration file - IIS Request size & time limits
<?xml version="1.0"?>
<configuration>
<configSections>
<!-- config sections -->
</configSections>
<system.web>
<!-- 20 MB max. request, 1800s (30min) timeout -->
<httpRuntime maxRequestLength="20480" executionTimeout="1800" />
</system.web>
</configuration>
@nikanos
nikanos / RegExTest.cs
Last active November 23, 2021 08:09
RegEx - Do not allow leading and trailing whitespace
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace RegExTest
{
static class MyExtensions
{
public static void PrintMatch(this Regex re, string input)
{