Skip to content

Instantly share code, notes, and snippets.

View mockmyberet's full-sized avatar
🥷

Tommy Becker mockmyberet

🥷
View GitHub Profile
@mockmyberet
mockmyberet / TraceDetailedDNSLogs.ps1
Created October 28, 2020 19:29 — forked from i128/TraceDetailedDNSLogs.ps1
Simple Script for Parsing Detailed DNS Debug Logs
function Get-DNSDebugLog
{
<#
.SYNOPSIS
This cmdlet parses a Windows DNS Debug log with details.
Author: @jarsnah12
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
@mockmyberet
mockmyberet / Optimize-PSReadLineHistory
Created November 5, 2017 10:57 — forked from jdhitsolutions/Optimize-PSReadLineHistory.ps1
A PowerShell command to trim the command history file used by PSReadline
#requires -version 5.0
#requires -module PSReadline
Function Optimize-PSReadLineHistory {
<#
.SYNOPSIS
Optimize the PSReadline history file
.DESCRIPTION
The PSReadline module can maintain a persistent command-line history. However, there are no provisions for managing the file. When the file gets very large, performance starting PowerShell can be affected. This command will trim the history file to a specified length as well as removing any duplicate entries.