Date | Author | Title | Type | Link |
---|---|---|---|---|
4/2023 | Mikey Bronowski | A Brief Introduction to PowerShellAI: An Intelligent Command Line | Article | https://www.sqlservercentral.com/articles/a-brief-introduction-to-powershellai-an-intelligent-command-line |
4/2023 | Darren J Robinson | Generative AI ChatGPT with PowerShell | Post | https://blog.darrenjrobinson.com/generative-ai-chatgpt-with-powershell/ |
4/2023 | Trond E Haavarstein | Win32App, Intune | Tweet | https://twitter.com/xenappblog/status/1651893224171077632?s=20 |
5/2023 | PowerShellMichael | The PowerShellAI Module! Let's Automate! | Tweet | https://www.youtube.com/watch?v=UFY5Ynjqg2c |
5/2023 | Juergen Klaassen | JumpCloud PowerShell Module and the PowerShellAI Module | Post | https://community.jumpcloud.com/t5/community-scripts/experimenting-with-the-jumpcloud-powershell-module-in/m-p/2777/highlight/true#M230 |
5/2023 | Merlijn Van Waeyenberghe | GPT - Your AI Scripting Buddy | Conference | https://mms2023atmoa.sched.com/event/1LS3Y/gpt-your-ai-scripting-buddy |
5/2023 | Use ChatGPT OpenAI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$list1 = ConvertFrom-Csv @" | |
list1 | |
Gigi | |
Jo | |
Chin | |
Phil | |
Jojo | |
"@ | |
$list2 = ConvertFrom-Csv @" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Modules PowerShellAI | |
$str = Get-Clipboard | |
$prompt = " | |
Clean up this copy-paste from YouTube and make it suitable for pasting into Notion as meeting notes. | |
- Remove time stamps | |
- Remove line breaks | |
- Grammar, spell check and proper punctuation | |
$str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role : system | |
content : Please respond with JSON. The JSON must always be an array of objects. | |
Have an entry for each task for each developer like this template: | |
{ | |
ProjectManager: "Jane Doe", | |
Developer: "John Doe", | |
TaskName: "Create a new API", | |
StartDate: "2020-01-01", | |
Duration: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bot { | |
[string] $Convo | |
[string] $Name | |
[string] $Context | |
[object] $Client | |
[object[]] $History | |
Bot([string] $convo, [string] $name, [string] $context, [object] $client, [object[]] $history) { | |
$this.Convo = $convo | |
$this.Name = $name |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt { | |
if (Get-Command Test-ChatInProgress -ErrorAction SilentlyContinue) { | |
$filler = '' | |
if (Test-ChatInProgress) { | |
$Provider = Get-ChatAPIProvider | |
if ($Provider -eq 'AzureOpenAI') { | |
$model = (Get-AzureOpenAIOptions)['DeploymentName'] | |
} | |
else { | |
$model = (Get-ChatSessionOptions)['model'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Invoke-ExcelTemplate { | |
<# | |
.SYNOPSIS | |
Generates an Excel spreadsheet based on a given query. | |
.DESCRIPTION | |
The Invoke-ExcelTemplate function generates an Excel spreadsheet based on a given query. The function takes a single parameter, $q, which represents the query to be used for generating the spreadsheet. | |
.PARAMETER q | |
The query to be used for generating the spreadsheet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install-Module PowerShellAI | |
function cosine_similarity { | |
param( | |
[Parameter(Mandatory = $true)] | |
[double[]]$a, | |
[Parameter(Mandatory = $true)] | |
[double[]]$b | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName PresentationFrameWork | |
$MainWindow=@' | |
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Topmost="True" | |
WindowStartupLocation="CenterScreen" | |
Title="PowerSHell Summit Videos" Height="850" Width="1200"> | |
<Grid> | |
<Grid.RowDefinitions> |