home.social

Search

892 results for “jaykul”

  1. What if your shipped with Copilot?

    I'm still not sure if this is something I need or not, but I got Microsoft's CodexCLI working (again), just so I could show it off.

    This is how I want github CLI to integrate.

    I *do* like the explanations the current Copilot CLI gives, but I want this in the readline because I want to be able to edit the command I get back.

    i.imgur.com/8vbkF48.gif

    P.S. My working fork is at github.com/Jaykul/ReadlineAI

  2. Why isn't there already a Get-WebCertificate or something, for fetching the TLS certificate being used by a web server?

    Well, my old version doesn't work in PowerShell 7, so I had to put this together for someone this week:

    gist.github.com/Jaykul/74508c0

  3. @jaykul
    Thanks for the reference, I'll take a deep look at your module.

    Currently I'm moving to @mdgrs module solution. It's was quite easy to test the extension commands directly by importing it with a prefix. But then I've tested it from #SecretManagement and wanted to cry.... The AdditionalParameters HashTable which is automatically provided is case sensitive regarding the keys. I tend to call this nonsense and will open an issue in the main repo for this.

  4. @jaykul Hi, thanks, I've missed the obvious... And now I've got a usage for the 'Prefix' param of Import-Module: Coding a 'Get-Secret' and testing with 'Get-PWSSecret', nice.

    While this will be my current workaround for initial dev I'll switch over to @mdgrs #powershell solution github.com/mdgrs-mei/Restartab which works perfect even if testing the Extension through #SecretManagement.

  5. @jamie @otterkring for what it's worth, I did convert it into something that worked for me.

    So I now have a function you can use in to syntax highlight arbitrary code roughly the way does it:

    github.com/Jaykul/EzTheme/comm

  6. @thorstenbutz I am using #miniconda (via chocolatey), and the #dotnet global tool to get #jupyter with #powershell etc.

    # new, elevated window
    choco update miniconda dotnet-sdk -y

    # new, elevated window
    $ENV:PATH += ';C:\tools\miniconda3\Scripts'
    (& "conda.exe" "shell.powershell" "hook") -join "`n" | Invoke-Expression

    # conda init powershell
    conda install jupyter
    dotnet tool install -g Microsoft.dotnet-interactive
    dotnet interactive jupyter install

    # Double-check:
    jupyter kernelspec list

  7. @thorstenbutz I am using (via chocolatey), and the global tool to get with etc.

    # new, elevated window
    choco update miniconda dotnet-sdk -y

    # new, elevated window
    $ENV:PATH += ';C:\tools\miniconda3\Scripts'
    (& "conda.exe" "shell.powershell" "hook") -join "`n" | Invoke-Expression

    # conda init powershell
    conda install jupyter
    dotnet tool install -g Microsoft.dotnet-interactive
    dotnet interactive jupyter install

    # Double-check:
    jupyter kernelspec list

  8. @thorstenbutz I am using #miniconda (via chocolatey), and the #dotnet global tool to get #jupyter with #powershell etc.

    # new, elevated window
    choco update miniconda dotnet-sdk -y

    # new, elevated window
    $ENV:PATH += ';C:\tools\miniconda3\Scripts'
    (& "conda.exe" "shell.powershell" "hook") -join "`n" | Invoke-Expression

    # conda init powershell
    conda install jupyter
    dotnet tool install -g Microsoft.dotnet-interactive
    dotnet interactive jupyter install

    # Double-check:
    jupyter kernelspec list

  9. @thorstenbutz I am using #miniconda (via chocolatey), and the #dotnet global tool to get #jupyter with #powershell etc.

    # new, elevated window
    choco update miniconda dotnet-sdk -y

    # new, elevated window
    $ENV:PATH += ';C:\tools\miniconda3\Scripts'
    (& "conda.exe" "shell.powershell" "hook") -join "`n" | Invoke-Expression

    # conda init powershell
    conda install jupyter
    dotnet tool install -g Microsoft.dotnet-interactive
    dotnet interactive jupyter install

    # Double-check:
    jupyter kernelspec list

  10. @thorstenbutz I am using #miniconda (via chocolatey), and the #dotnet global tool to get #jupyter with #powershell etc.

    # new, elevated window
    choco update miniconda dotnet-sdk -y

    # new, elevated window
    $ENV:PATH += ';C:\tools\miniconda3\Scripts'
    (& "conda.exe" "shell.powershell" "hook") -join "`n" | Invoke-Expression

    # conda init powershell
    conda install jupyter
    dotnet tool install -g Microsoft.dotnet-interactive
    dotnet interactive jupyter install

    # Double-check:
    jupyter kernelspec list

  11. I don't know if I'm learning syntax or just making a collection of usable queries, but here's one for yaml from today.

    To pull the config for the user(s) with "prod" in the name:

    yq '.users.[] | select(.name|contains("prod"))' $home\.kube\config

    That's github.com/mikefarah/yq

    doesn't (yet) support _all_ of jq's syntax, but it supports everything I've needed, and it works on yaml AS WELL AS on json...

  12. The GitHub "actions/runner-images" project has been insisting they are just sticking with "LTS" #PowerShell for a year now.

    PowerShell 7.4 GA is out and is the new LTS release.

    github.com/actions/runner-imag

    Since 7.2 doesn't expire until November, my bet is they not do anything for several months, at least.

    Anyone betting against me?

    P.S. I'm using #earthly in my builds, so I can build and test with the versions of #PowerShell I want to support.

    earthly.dev/

  13. The GitHub "actions/runner-images" project has been insisting they are just sticking with "LTS" for a year now.

    PowerShell 7.4 GA is out and is the new LTS release.

    github.com/actions/runner-imag

    Since 7.2 doesn't expire until November, my bet is they not do anything for several months, at least.

    Anyone betting against me?

    P.S. I'm using in my builds, so I can build and test with the versions of I want to support.

    earthly.dev/

  14. This graphapi vulnerability (seriously, phpinfo, in 2023?) is one of those things that only affect a fraction of users, but if you're affected, you'd better have already addressed it, because the is live.

    arstechnica.com/security/2023/

  15. Has anyone had problems since this week with New-AzApiManagementApiRevision?

    Something like this?
    github.com/Azure/azure-powersh

  16. @zas Also, KIC has _great_ support for the (even the preview stuff like ) as far as I can tell.

    I haven't tried it, because BYOCNI made it harder to switch off , and I have a talk to do ;-)

    docs.konghq.com/kubernetes-ing

  17. @zas Yeah, I've been trying to set up an with using the exclusively instead of my and it's tricky, not because of the "BYOCNI" part, but because *most* helm charts still don't support Gateway -- but do support Ingress.

    Sadly, the project got so sidetracked supporting vendor extensions that the current version can't even generate plain HTTP Routes from ingresses unless you're using @istiomesh

  18. @[email protected] wait, does provide their SDK without a redistribution license?

  19. Please don't forget, when you're dealing with AI startups, that when they make ludicrous claims about privacy ... they might just be flat-out lying to you.

    The main HARPA website has this text:

    PRIVACY BY DESIGN: HARPA runs locally in browser and does not send your data away.

    Except we know this can't be true, because it's a ChatGPT service. Their actual privacy policy is a mess --but still fails to mention that you're also subject to OpenAI's terms!

  20. @sassdawe @shanselman I think that's going to be on the PowerShell team's head, ultimately: the days of decade-long validity for certificates are probably behind us.

    Only can fix the fact that it treats every new cert as a new publisher, and requires you to (re)affirm your trust of them.

    Never mind the package-signing thing in the old PowerShellGet, which blocks install if the certificate changes. 🙄

  21. Who else remembers getting these in the mail every month?

  22. @marud What I find weird about is the default comparer is OrdinalIgnoreCaseComparer, but when you "add" them, you get CultureAwareComparer:

    filter Get-Comparer {
    [hashtable].GetProperty("EqualityComparer", [Reflection.BindingFlags]"NonPublic,Instance").GetValue($_)
    }

    @{}, (@{} + @{}) | Get-Comparer

    Both are CaseInsentitive, so if you do New-Object or [hashtable]::new() you must not add hashtables, but you can use the Add or Set methods, or $ht[$key] = $value

  23. @DoctorDNS @sasstu it's already in .NET -- but the team does not enable basic functionality if it came out after .NET 2.0 -- so you don't have access to unless you map them into the .NET 1.0 era "ETS"

    Here's the method in .NET:
    learn.microsoft.com/en-us/dotn

    Here's the pre-github era feature request:
    github.com/PowerShell/PowerShe