Skip to content

Instantly share code, notes, and snippets.

@mikefrobbins
Last active December 15, 2024 06:11
Show Gist options
  • Select an option

  • Save mikefrobbins/8d2e208f6a5729d1cf90a052eaa1d443 to your computer and use it in GitHub Desktop.

Select an option

Save mikefrobbins/8d2e208f6a5729d1cf90a052eaa1d443 to your computer and use it in GitHub Desktop.

Revisions

  1. mikefrobbins revised this gist Dec 11, 2024. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # Install the Microsoft.PowerShell.ConsoleGuiTools module
    Install-Module -Name Microsoft.PowerShell.ConsoleGuiTools

    # Select and open PowerShell podcast episode webpage with PowerShell
    Invoke-RestMethod -Uri https://feed.podbean.com/powershellpodcast/feed.xml |
    Select-Object -Property @{
    label='title';expression={$_.title[0]}}, @{
  2. mikefrobbins created this gist Dec 11, 2024.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    Invoke-RestMethod -Uri https://feed.podbean.com/powershellpodcast/feed.xml |
    Select-Object -Property @{
    label='title';expression={$_.title[0]}}, @{
    label='date';expression={Get-Date -Date $_.pubDate -Format d}},
    duration,
    link |
    Out-ConsoleGridView -OutputMode Single |
    Foreach-Object {
    Start-Process -FilePath $_.link
    }