Skip to content

Instantly share code, notes, and snippets.

View x-limitless-x's full-sized avatar
🎯
Focusing

Blake Drumm x-limitless-x

🎯
Focusing
View GitHub Profile
@x-limitless-x
x-limitless-x / Check-UnrarZombieProcesses.ps1
Last active November 19, 2022 04:57
This powershell script automatically closes any Unrar processes that hang and are considered "zombie" processes due to them causing no further processing.
#Author: Blake Drumm (x-limitless-x)
#Created: November 18th, 2022
#
#Description: This powershell script automatically closes any Unrar processes that hang and are considered "zombie" processes due to them causing no further processing.
$runningIds = $null
$lastWriteTime = $null
$fileToCheck = $null
$Minutes = 20
@x-limitless-x
x-limitless-x / Remove Duplicates from Sabnzbd
Last active November 12, 2022 00:40
Remove any duplicates from sabnzbd programmatically
#Author: Blake Drumm
#Created: October 23rd, 2022
#Modified: November 11th, 2022
$ServerAddress = '<sabnzbd_weburl>'
$APIKey = '<sabnzbd_apikey>'
# Grab List of Duplicates
[array]$listOfNzbs = (((Invoke-WebRequest "$ServerAddress/api?mode=queue&output=json&apikey=$APIKey" -UseBasicParsing).Content | ConvertFrom-Json).Queue.Slots |
Group-Object -Property filename |
@x-limitless-x
x-limitless-x / Set-VeeamVMWareMaintenanceMode.ps1
Last active March 30, 2022 20:15
Easily set Veeam VMWare Maintenance Mode in SCOM
Import-Module OperationsManager
$instanceclass = Get-SCOMClass -DisplayName "Veeam VmWare"
Function Time-Stamp
{
$TimeStamp = Get-Date -Format "MM/dd/yyyy hh:mm:ss tt"
return "$TimeStamp - "
}
$ErrorActionPreference = 'SilentlyContinue'
$Servers = Get-SCOMClassInstance | Where { ($_.DisplayName -match "^AS-.*$") -or ($_.DisplayName -match "^SC-.*$") -and ($_.DisplayName -notmatch "vmhost") }
# -----------------------------------------------------
# Variables Section
# -----------------------------------------------------
<#
.SYNOPSIS
Convert-CSV for cointracking.info
.DESCRIPTION
Will import a CSV file from Daedalus and convert it to a csv file. Compatible with cointracking.info