Skip to content

Instantly share code, notes, and snippets.

View IDisposable's full-sized avatar

Marc Brooks IDisposable

View GitHub Profile
@IDisposable
IDisposable / PerformanceHack.sql
Last active August 3, 2023 20:06
Sometimes you have to break out the sledge hammer...
-- Creates the event reporting rollup tables and configures the triggers
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EventAccumHourly](
[SliceDate] DATETIME NOT NULL CONSTRAINT [CK_EventAccumHourly_SliceDate] CHECK ([SliceDate]=DATEADD(HOUR,DATEDIFF(HOUR,0,[SliceDate]),0))
,[ClientId] BIGINT NOT NULL
,[SiteId] BIGINT NOT NULL
,[AlertId] BIGINT NOT NULL
@IDisposable
IDisposable / Chatlog.txt
Created October 17, 2019 22:11
Why I'm leaving GoDaddy
Info at 4:38pm, Oct 17:
Expert help is on the way.
GoDaddy at 4:41pm, Oct 17:
You're chatting with SANDEEP S
SANDEEP S at 4:41pm, Oct 17:
Thank you for contacting GoDaddy Sales and Support. My name is Sandeep. May I know whom I am chatting with and How may I assist you today?
You at 4:42pm, Oct 17:
@IDisposable
IDisposable / Pinger.cs
Created February 1, 2018 04:43
A once-in-a-while pinger of websites
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Cache;
using System.Net.Security;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Web.Configuration;
using Alerts.Data.API;
@IDisposable
IDisposable / web.config
Created September 17, 2015 06:01
Enabling static file compression on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />
<!--minification requires dynamicCompressionBeforeCache off, order of operations error?-->
<httpCompression noCompressionForHttp10="false" noCompressionForProxies="false" staticCompressionIgnoreHitFrequency="true" />
<!--If your IIS server has this unlocked, uncomment
<serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="00:00:10" enabled="true" />
-->
@IDisposable
IDisposable / DomainRoute.cs
Last active January 14, 2020 16:22
Domain (hostname) Routing for Asp.Net MVC and WebAPI
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Http;
using System.Web.Http.Routing;
using System.Web.Mvc;
@IDisposable
IDisposable / keybase.md
Created September 17, 2014 15:11
Keybase.io GitHub identity proof.

Keybase proof

I hereby claim:

  • I am IDisposable on github.
  • I am idisposable (https://keybase.io/idisposable) on keybase.
  • I have a public key whose fingerprint is 9A24 1302 46E4 2715 943D 24DB DCAB D27B A932 F865

To claim this, I am signing this object:

@IDisposable
IDisposable / Holy_War.cpp
Last active March 8, 2023 20:43
It's another holy war!
template <class Religion_1, class Religion_2>
class Holy_War
{
public:
Holy_War(const Religion_1::Dogma & IN_Side_1, const Religion_2::Dogma & IN_Side_2)
: M_Side_1(IN_Side_1), M_Side_2(IN_Side_2)
{}
const string & Heres_What_Side_1_Thinks(const string & IN_Side_1_Comments, const string & IN_Side_2_Comments) const
{