Skip to content

Instantly share code, notes, and snippets.

View CrookedJ's full-sized avatar
💭
idk shit about fuck

CrookedJ CrookedJ

💭
idk shit about fuck
  • US
View GitHub Profile
@CrookedJ
CrookedJ / userscript.js
Created April 10, 2026 13:26
MS Docs – Auto Collapse Details | Automatically collapses extraneous details in MS docs. (e.g. the Parameter Set details for PowerShell cmdlets)
// ==UserScript==
// @name MS Docs – Auto Collapse Details
// @author Josh Crook (crookedj)
// @version 2025-12-08
// @description Automatically collapses extraneous details in MS docs. (e.g. the Parameter Set details for PowerShell cmdlets)
// @match https://learn.microsoft.com/*
// @run-at document-end
// ==/UserScript==
(function() {
<#
.NOTES
Name: Generate-MessageProfile.ps1
Author: Daniel Sheehan
Requires: PowerShell v2 or higher and to be run through the full Exchange
Management Shell (not a remote Shell session). The account running this
script needs to have administrator rights on the Exchange servers and rights
to query tracking logs and mailboxes.
Version 2.0 - 12/30/2016: Introduced multi-threading to allow for data
gathering form multiple servers simultaneously. Reconfigured server retry
function Get-TaskPlus {
[CmdletBinding(SupportsShouldProcess)]
param(
[VMware.VimAutomation.ViCore.Impl.V1.Alarm.AlarmDefinitionImpl]$Alarm,
[Parameter(ValueFromPipeline)]
[VMware.VimAutomation.ViCore.Impl.V1.Inventory.InventoryItemImpl]$Entity,
[switch]$Recurse = $false,
[VMware.Vim.TaskInfoState[]]$State,
[DateTime]$Start,
[DateTime]$End,
@CrookedJ
CrookedJ / userscript.js
Last active April 10, 2026 13:24
Remove Email Activity from SolarWinds Service Desk Audit Log
// ==UserScript==
// @name Remove emails from audit log
// @version 2025-05-13
// @description remove the email related logs from the audit tab
// @author Josh Crook (crookedj)
// @match https://helpdesk.your-domain.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=samanage.com
// @grant none
// @run-at document-end
// ==/UserScript==
@CrookedJ
CrookedJ / Get-ConnectionsHint.ps1
Last active May 26, 2025 13:57
Get-ConnectionsHint.ps1
# Fetches category hints from Mashable for the NYT Connections game.
function Get-ConnectionsHint {
[CmdletBinding()]
param (
[Parameter(Position = 0)]
[string]$Number = ([int](New-TimeSpan -Start '2023-09-20' -End (Get-Date)).Days + 101),
[switch]$Categories
)
$lookupDate = ConnectionsNumberToDate $Number
$urlbase = 'https://mashable.com/article/nyt-connections-hint-answer-today-'
@CrookedJ
CrookedJ / DaD.ahk
Last active February 8, 2024 14:48
Functions for trading in Dark and Darker
; For AutoHotkey2
; Right now just has cell coords for 1440p and 1080p
CoordMode "Mouse", "Client"
WinGetClientPos ,, &Width, &Height, "ahk_exe DungeonCrawler.exe"
if (Width/Height != 16/9) {
throw("Detected res is not 16:9 or game window size could not be determined. Make sure the game is open")
}
if (Width = 1920 and Height = 1080) {
colStart := 1080