Skip to content

Instantly share code, notes, and snippets.

@BanksySan
BanksySan / 200_ApplicationInsightsOPTIONS.dat
Last active May 11, 2017 20:47
Application Insights Fiddler AutoResponse
HTTP/1.1 200 OK
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Access-Control-Allow-Methods: POST
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Name, Content-Type, Accept
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3600
X-Content-Type-Options: nosniff
Date: Wed, 10 May 2017 22:13:15 GMT
Content-Length: 0
@BanksySan
BanksySan / web.config
Created February 13, 2018 10:01
web.config snippets
<!-- Proxy -->
<system.net>
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress="http://127.0.0.1:8888"
bypassonlocal="true" />
<bypasslist>
<add address="[a-z]+\.contoso\.com" />
</bypasslist>
@BanksySan
BanksySan / splice.fs
Last active February 24, 2018 23:28
Useful F# finctions
let splice index array =
match array with
| [] -> (array, [])
| array -> if array.Length < index then (array, []) else (array.[..index - 1], array.[index..])
@BanksySan
BanksySan / notes.md
Last active December 19, 2018 16:23
Notes

Snippets

WDK Commands

  • symstore add /r /f C:\SampleFiles /s C:\Symbols /t BanksySan.Tooling

Dbg Commands

  • sxe ld clr

SOS Commands

@BanksySan
BanksySan / Default.DotSettings
Created April 3, 2019 09:31
ReSharper DotSettings
<wpf:ResourceDictionary xml:space="preserve"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:System;assembly=mscorlib"
xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml"
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeAccessorOwnerBody/@EntryIndexedValue">ERROR</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeAttributes/@EntryIndexedValue">ERROR</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeConstructorOrDestructorBody/@EntryIndexedValue">ERROR</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeLocalFunctionBody/@EntryIndexedValue">ERROR</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeMethodOrOperatorBody/@EntryIndexedValue">ERROR</s:String>
@BanksySan
BanksySan / Program.cs
Created April 4, 2019 12:52
CosmosDB hanging on table creation.
using Microsoft.Azure.Cosmos.Table;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Framework
{
class Program
{
static async Task Main(string[] args)
{
@BanksySan
BanksySan / .gitignore
Created April 17, 2019 15:37
Git ignore.
# Created by https://www.gitignore.io/api/rider,ncrunch,visualstudio
# Edit at https://www.gitignore.io/?templates=rider,ncrunch,visualstudio
### NCrunch ###
# NCrunch
*.ncrunch*
_NCrunch_*
*.crunch.xml
*.ncrunchsolution*
@BanksySan
BanksySan / user-agent-strings.json
Last active July 22, 2019 15:32
User Agent strings
{
"safari": {
"11.0": [
"Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko",
"Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko"
],
"10.6": [
"Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0"
],
"10.0": [
@BanksySan
BanksySan / .editorconfig
Created October 3, 2019 11:35
VS Editor Config for Unity
#Resharper
resharper_unassigned_field_compiler_highlighting=false
resharper_field_can_be_made_read_only_global_highlighting=false
resharper_field_can_be_made_read_only_local_highlighting=false
resharper_unused_field_compiler_highlighting=false
resharper_unused_member_global_highlighting=false
resharper_unused_member_local_highlighting=false
[*.cs]