-
Download ProcDump
-
Run this command file in an Administrator Console to capture a one-time memory dump for a specific processes:
- procdump.exe YourProcessName -accepteula -ma C:\MemoryDumps\Dumps
- Note, just use the name of the process that is displayed in the Task Manager
- procdump.exe YourProcessName -accepteula -ma C:\MemoryDumps\Dumps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace Helpers | |
{ | |
public static class TimeSpanHelper | |
{ | |
/// <summary> | |
/// Gets a formatted string of the given <see cref="TimeSpan"/>. Supports up to microsecond resolution. | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
namespace Helpers | |
{ | |
///<summary> | |
/// Provides a mechanism for executing a method at specified intervals without overlapping executions. | |
/// While the timer is executing the method/action, if another interval run occurs, it will return | |
/// immediately (skipping the new run) to prevent an overlapping execution and allow the previous execution to continue. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name The Morning Brew - Dark Mode | |
@version 1.0.0 | |
@description Dark mode for the The Morning Brew blog @ https://blog.cwa.me.uk | |
@namespace github.com/RandyBurden | |
@author Randy Burden | |
@license MIT | |
==/UserStyle== */ |
-
Download ProcDump
- ProcDump is a Microsoft Sysinternals command-line utility for creating memory dumps / crash dumps.
-
Run the following command to start capturing a memory dump anytime an application crashes:
mkdir C:\MemoryDumps
procdump.exe -accepteula -ma -i C:\MemoryDumps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kills a specific Windows Service process if it uses over 80 GB of memory | |
# Note, be sure to set the Windows Service to restart instantly on failure | |
# To run this script manually, run the following 2 lines of PowerShell: | |
# powershell -command "C:\Temp\WindowsScheduledTaskScripts\Kill-Service-At-80-GB.ps1" | |
# $LASTEXITCODE | |
# To run as a Windows Scheduled Task: | |
# Set the program to run as "powershell" | |
# Set the command to: -Command ". C:\OneDine\WindowsScheduledTaskScripts\Kill-Service-At-80-GB.ps1; exit $LASTEXITCODE" |
- Cloudflare Tunnels has a feature named "Quick Tunnels" that allows you to expose localhost ports to the internet via a dynamically generating unique URL.
- Cloudflare Quick Tunnels is a free alternative to ngrok, which is a popular developer tool with more features, but does not allow you to have more than 1 instance running at a time without paying, whereas with Cloudflare Quick Tunnels there is no such limit.
- Documentation
- Download from Cloudflare or download from the GitHub repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub ShowCategoriesDialog() | |
Dim Mail As Object | |
Set Mail = Application.ActiveInspector.CurrentItem | |
Mail.ShowCategoriesDialog | |
End Sub | |
Public Sub AddAwaitingFeedbackCategory() | |
Dim Mail As Object | |
Set Mail = Application.ActiveInspector.CurrentItem | |
Mail.Categories = "Awaiting Feedback" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sentiment Picker</title> | |
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css'> | |
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css'> | |
<style> | |
.sentiment-picker .btn { | |
color: #fff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Create Calendar table for MS SQL Server (Total runtime is less than 2 seconds to populate) */ | |
-- DROP TABLE IF EXISTS Calendar | |
CREATE TABLE Calendar ( | |
CalendarDate DATE NOT NULL PRIMARY KEY, | |
CalendarYear SMALLINT NULL, | |
CalendarMonth tinyint NULL, | |
CalendarDay tinyint NULL, | |
CalendarMonthName VARCHAR(9) NULL, | |
CalendarDayName VARCHAR(9) NULL, | |
CalendarDayofWeek tinyint NULL, |