Skip to content

Instantly share code, notes, and snippets.

View wipash's full-sized avatar
🏠
Working from home

Sean McGrath wipash

🏠
Working from home
View GitHub Profile
$MaxLogAge = 31
$LogFilesDirectory = 'C:\inetpub\logs\LogFiles\'
$ErrorActionPreference = 'SilentlyContinue'
if ($LogFilesDirectory) {
Set-Location $LogFilesDirectory
# For all directories that start with "W3SVC" run the following
foreach ($LogDirectory in Get-ChildItem $LogFilesDirectory | Where-Object { $_.PsIsContainer -and $_.Name -match '^W3SVC' }) {
@wipash
wipash / gcm-llm.fish
Last active August 27, 2024 02:27
AI-powered git commit message generator, for Fish shell
function gcm
# Check if llm is installed, if not, install it
if not type -q llm
echo "'llm' is not installed. Attempting to install it using brew..."
if brew install llm
echo "'llm' installed successfully."
else
echo "Failed to install 'llm'. Please install it manually and try again."
return 1
end