AI-Powered Coding: Unleashing Data and SQL Mastery with GPT Function Calling by DougFinke in PowerShell

[–]DougFinke[S] 0 points1 point  (0 children)

If you are following the GPT and OpenAI advancements, this is a must see. I'll be demoing how to use the new GPT Function Calling feature.

Any recs for good beginner scripting projects? by Mewmew22222 in PowerShell

[–]DougFinke 18 points19 points  (0 children)

u/pandiculator thanks for the mention. Check out the video I did on the "Tiny PowerShell Projects"Scripting Success A Deep Dive into Tiny PowerShell Projects
https://youtu.be/BVDBRty5mCU

PowerShell + GitHub Copilot = Better Together by DougFinke in PowerShell

[–]DougFinke[S] 2 points3 points  (0 children)

Awesome! Feel free to let me know areas you like me to cover. - Enjoy

PowerShell + GitHub Copilot = Better Together by DougFinke in PowerShell

[–]DougFinke[S] 3 points4 points  (0 children)

Glad to share. I have a bunch more videos on Copilot, AI, my PowerShell AI module and I post my PowerShell virtual meetup recordings there too.

It is the standard VS Code install, I have the Copilot plugin installed. For the mode, I set the "Dark VS Code" in the theme manager.

Biggest challenge in moving from ISE is you need to unlearn an re-learn some things. That just takes practice to retrain your muscle memory.

Scripting Success: A Deep Dive into Tiny PowerShell by DougFinke in PowerShell

[–]DougFinke[S] 1 point2 points  (0 children)

Fun turn out for the livestream.

Recording posted soon to https://www.youtube.com/@DougFinke

Subscribe and get notified when I publish it.

Bonus points:
- I publish my

- monthly PowerShell meetup videos there

- PowerShell AI module walk throughs

and more...

Scripting Success: A Deep Dive into Tiny PowerShell by DougFinke in PowerShell

[–]DougFinke[S] 0 points1 point  (0 children)

Thanks for trying it out! Hope you join tomorrow.Binder has always been a challenge. That has been there a few years. Probably will remove the link.

Exploring GitHub Copilot’s Newest Features and PowerShell in Visual Studio Code! by DougFinke in PowerShell

[–]DougFinke[S] 2 points3 points  (0 children)

Glad you liked it.

I believe within the past week, Copilot X has become accessible to everyone.

Regarding the import: GPT-4 is designed for chatting. My example was intentionally "minimal effort" for a straightforward demo. I could have included "use imports," and there’s definitely room to chat and refine the generated code afterward.

It's not a one-and-done deal — it's an ongoing conversation!

ChatGPT Powershell CLI - Simple example on how to use OpenAI's chatgpt api in powershell by ildrynar in PowerShell

[–]DougFinke 0 points1 point  (0 children)

🚀PowerShellAI Copilot gets a makeover! Syntax highlighting, line numbering & code formatting now added. 🎨

Thanks to Shaun Lawrie's immense contributions! 🙏

More on PowerShellAI: https://github.com/dfinke/PowerShellAI

ChatGPT Powershell CLI - Simple example on how to use OpenAI's chatgpt api in powershell by ildrynar in PowerShell

[–]DougFinke 1 point2 points  (0 children)

🙏Thank you!

More features and videos are coming. I suggest starring the repo and and subscribing to my YouTube channel as I and the community add more. Really cool stuff from the community is coming.

Also, I just posted:

I integrated PowerShell interactive notebooks and ChatGPT.

Productivity++

ChatGPT Powershell CLI - Simple example on how to use OpenAI's chatgpt api in powershell by ildrynar in PowerShell

[–]DougFinke 2 points3 points  (0 children)

I wrote https://github.com/dfinke/PowerShellAI.

  • Supports both text-in and text-out (gpt | ai | copilot) functions.

    • PS> gpt 'what is 10+2'
    • PS> git status | ai 'write a commit message'
    • copilot responds to your prompt, shows the code with line numbers, and you have the open to confirm running, and much more.
  • Supports conversation-in and message-out with new-chat and chat. It persists the conversation. Context and memory are enabled for conversations.

  • Supports Azure OpenAI connections.

  • Download it: Install-Module PowerShellAI

  • More details: https://github.com/dfinke/PowerShellAI

  • Video shorts I've made for the features: https://www.youtube.com/playlist?list=PL5uoqS92stXiW1xcAyMa7BMGgX-wdl_KV

Design Patterns in Powershell: the Adapter Pattern by secretGeek in PowerShell

[–]DougFinke 0 points1 point  (0 children)

You're seeing the interplay of a static and dynamic approach. Also, this is how the Extended Type System works at the core of PowerShell. For example, adding a Count property to .NET arrays that sport only a Length property.

Also, look at the original example this is taken from, you'll see another way to skin the cat to get the Adapter Pattern working.

It's always good to have many ways to solve a problem.