This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
// ==UserScript== | |
// @name @chaoticvibing Twitter Blue Nerd - twitter.com | |
// @namespace Violentmonkey Scripts | |
// @match *://*.twitter.com/* | |
// @match *://*.x.com/* | |
// @grant none | |
// @version 1.9.2 | |
// @author @chaoticvibing - GH @busybox11 | |
// @description 11/9/2022, 11:45:28 PM | |
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw |
function Update-DotNet-Global-Tools | |
{ | |
foreach ($toolInfoRow in $(dotnet tool list -g | Select-Object -Skip 2)) | |
{ | |
$toolInfo = $toolInfoRow.Split(" ", [StringSplitOptions]::RemoveEmptyEntries) | |
$toolName = $toolInfo[0] | |
$toolVersion = $toolInfo[1].Trim() | |
# Fetch version from NuGet | |
$nugetInfo = (dotnet tool search --take 1 $toolName | Select-Object -Skip 2) |
This document now exists on the official ASP.NET core docs page.
#include <Unknwn.h> | |
#include <Windows.h> | |
#include <ntstatus.h> | |
#include <winternl.h> | |
#include <wrl\implements.h> | |
#include <comutil.h> | |
#include <dcomp.h> | |
#include <dwmapi.h> | |
#include <dxgi1_3.h> | |
#include <d3d11_2.h> |
// Retarget all loaded projects to the .net version specified in "TargetFramework" | |
// Execute with Visual Commander (https://marketplace.visualstudio.com/items?itemName=SergeyVlasov.VisualCommander) | |
// ********************************************************** | |
// NOTE: NuGet packages need to be reinstalled post execution | |
// ********************************************************** | |
using EnvDTE; | |
using EnvDTE80; | |
using System.Collections.Generic; |
public class Demo | |
{ | |
public event EventHandler DemoEvent; | |
public void Raise() | |
{ | |
this.DemoEvent?.NaiveRaiseAsync(this, EventArgs.Empty).GetAwaiter().GetResult(); | |
Console.WriteLine("All handlers have been executed!"); | |
} | |
} |
"Stack Caching" (or Stack Compression as PerfView calls it) is a feature of ETW designed to reduce trace buffer & etl file sizes by de-duplicating stack traces. Naturally, as an ETW feature it is documented solely through obtuse (likely accidental) references and hints in Microsoft tooling. And so the documentation is left to stubborn reverse engineers dedicated ETW enthusiasts such as myself.
The Windows version studied for this was Windows 10 1809 64-bit. I do not think this feature has changed significantly since its introduction, but I have not verified that.
In trace buffers, the compressed stacks are emitted with the Stackwalk task guid, like regular stackwalks, but with opcodes for events (as labeled by WPA) like "Stack Walk: Delete Definition" and "Stack Walk: Reference [User]". "Reference" entries contain a 'StackKey' value that uniquely identifies a stack trace definition. "Stack Walk: Delete Definition" is logged when cached stacks are evicted; from the MOF def
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
#!/usr/bin/env python | |
# | |
# analyze.py Example of an LLDB script that loads SOS and runs a command | |
# for analysis of a .NET Core application on Linux/macOS. | |
# Requires LLDB matching the version of libsosplugin.so for your | |
# CoreCLR version, and gdb. | |
# | |
# USAGE: analyze.py [--memory] [--stacks] COREFILE | |
# | |
# NOTE: To run this as stand-alone, you might need to fix some bad symlinks |
#include <windows.h> | |
void SetWindowBlur(HWND hWnd) | |
{ | |
const HINSTANCE hModule = LoadLibrary(TEXT("user32.dll")); | |
if (hModule) | |
{ |