Skip to content

Instantly share code, notes, and snippets.

@ogrishman
ogrishman / Readme.md
Created July 2, 2019 01:00 — forked from NickCraver/Readme.md
A simple LINQPad script I wrote for load testing SQL Server.

This is a simple LINQPad script I wrote one day to load test some large SQL servers. Maybe it's useful to someone. The basic premise is defining your queries once, including which ID patterns to fetch (at the bottom), and load test a mixture. The script defines everything needed in one place, then fires up the command-line linqpad runner to run many queries at once.

Params up top:

const string LinqPadPath = @"C:\Linqpad\lprun.exe";
const bool runSequential = false;
const int defaultThreads = 1;
const int defaultIterations = 2000;
@ogrishman
ogrishman / sdshow.py
Created June 28, 2019 09:11 — forked from w4kfu/sdshow.py
sdshow readable
import subprocess
import sys
ACE_TYPE = {
"A" : "ACCESS_ALLOWED_ACE_TYPE",
"D" : "ACCESS_DENIED_ACE_TYPE",
"OA" : "ACCESS_ALLOWED_OBJECT_ACE_TYPE",
"OD" : "ACCESS_DENIED_OBJECT_ACE_TYPE",
"AU" : "SYSTEM_AUDIT_ACE_TYPE",
"AL" : "SYSTEM_ALARM_ACE_TYPE",
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ionic.Zlib;
namespace TestZlib
{
class Program