Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

AI for simple variables to add spice to your scripts

I use duck.ai quite a bit for random AI questions that aren't tracked or tied to any kind of username. I've found it very useful for getting long lists of adjectives or adverbs for various handy PowerShell automations.

Simply ask (or use this "prompt" as they say in MSFT-land):

"show me a powershell variable on one line with line breaks for baseball adjectives"

$baseballAdjectives = @("aggressive", "athletic", "balanced", "brilliant", "calm", "capable", "clutch", "confident", "consistent", "creative", `

"defensive", "determined", "dynamic", "efficient", "explosive", "fast", "fearless", "flexible", "focused", "fundamental", `

"generous", "gritty", "hardworking", "high-energy", "intense", "intelligent", "inventive", "jumpy", "keen", "lateral", `

"leadership", "lengthy", "lightning", "lively", "loyal", "mobile", "motivated", "nimble", "offensive", "opportunistic", `

"passionate", "patient", "powerful", "precise", "quick", "reliable", "resilient", "resourceful", "responsive", "savvy", `

"scrappy", "selfless", "sharp", "shifty", "skilled", "smart", "smooth", "solid", "speedy", "spirited", `

"strategic", "strong", "supportive", "tactical", "tenacious", "tough", "unselfish", "versatile", "vibrant", "vigilant", `

"vital", "youthful", "zealous", "competitive", "disciplined", "impactful", "inspired", "inspiring", "motivational", "reliable")


Requires

 #Requires -Modules @{ ModuleName="MicrosoftTeams"; ModuleVersion="4.7.0" }

Snippets

if (!(Get-Module).Name -contains "ExchangeOnlineManagement"){
    Write-Output "Connecting to Exchange Online..."
    Connect-ExchangeOnline
}

VS Code Updates for January

Visual Studio Code has PowerShell extension updates for January.

Here's the changelog link...

https://github.com/PowerShell/vscode-powershell/blob/main/CHANGELOG.md

Advent of Code 2022

Advent of Code is a yearly event that promotes coding via an online Advent calendar game with code challenges and vast prizes and recognition for the winners (okay, I'm not sure about prizes). I plan on participating in some way, but nothing too enthusiastic.