Search
892 results for “jaykul”
-
What if your #readline 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 #copilot 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.
#PowerShell #Bash #Zsh #PSReadline
https://i.imgur.com/8vbkF48.gif
P.S. My working fork is at https://github.com/Jaykul/ReadlineAI
-
@DoctorDNS Install-PackageProvider NuGet -MinimumVersion 2.8.5.208 -ForceBootstrap
https://github.com/Jaykul/BoxStarter-Boxes/blob/main/00_Everyone/PoshBox.psm1#L44
-
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:
https://gist.github.com/Jaykul/74508c0c8425e6d5d300caa84c8f873f
#PowerShell #SSL #TLS #Certificate #PS7 #ServerCertificateValidation
-
@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.
-
@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 https://github.com/mdgrs-mei/RestartableSession which works perfect even if testing the Extension through #SecretManagement.
-
@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 #PowerShell to syntax highlight arbitrary code roughly the way #PSReadLine does it:
https://github.com/Jaykul/EzTheme/commit/58c5883514f787e42e0cd4aaef864c299542cc2d
-
@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 -
@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 -
@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 -
@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 -
@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 -
I don't know if I'm learning #jq syntax or just making a collection of usable queries, but here's one for yaml from today.
To pull the #kubectl config for the user(s) with "prod" in the name:
yq '.users.[] | select(.name|contains("prod"))' $home\.kube\config
That's https://github.com/mikefarah/yq
#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...
-
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.
https://github.com/actions/runner-images/issues/8847
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.
-
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.
https://github.com/actions/runner-images/issues/8847
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.
-
Has anyone had problems since this week with New-AzApiManagementApiRevision?
#Azure #PowerShell #APIMSomething like this?
https://github.com/Azure/azure-powershell/issues/24144 -
@zas Also, #kong KIC has _great_ support for the #GatewayAPI (even the preview stuff like #grpc) as far as I can tell.
I haven't tried it, because BYOCNI made it harder to switch off #cilium, and I have a talk to do ;-)
https://docs.konghq.com/kubernetes-ingress-controller/latest/get-started/
-
@zas Yeah, I've been trying to set up an #AKS #k8s #cluster with #cilium using the #GatewayAPI exclusively instead of my #traefik #ingress 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 #Ingress2Gateway 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
-
Did you want to get out of the cloud? #Azure has you covered: https://techcommunity.microsoft.com/blog/azurearcblog/introducing-azure-local-cloud-infrastructure-for-distributed-locations-enabled-b/4296017
LOL. You can "have your cloud, and yeet it too!"
#AzureCloud #AzureLocal #DataCenter #SelfHosting #AzureArc #DadJoke
-
@[email protected] wait, does #Netwrix provide their SDK without a redistribution license?
-
Did you want to get out of the cloud? #Azure has you covered: https://techcommunity.microsoft.com/blog/azurearcblog/introducing-azure-local-cloud-infrastructure-for-distributed-locations-enabled-b/4296017
LOL. You can "have your cloud, and yeet it too!"
#AzureCloud #AzureLocal #DataCenter #SelfHosting #AzureArc #DadJoke
-
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!
-
@sassdawe @shanselman I think that's going to be on the PowerShell team's head, ultimately: the days of decade-long validity for #codesigning certificates are probably behind us.
Only #PowerShell 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. 🙄
-
Who else remembers getting these in the mail every month?
-
@marud What I find weird about #PowerShell #hashtables 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
-
Who else remembers getting these in the mail every month?
-
Who else remembers getting these in the mail every month?
-
Who else remembers getting these in the mail every month?
-
Who else remembers getting these in the mail every month?
-
@DoctorDNS @sasstu it's already in .NET -- but the #PowerShell team does not enable basic #dotnet functionality if it came out after .NET 2.0 -- so you don't have access to #ExtensionMethods unless you map them into the .NET 1.0 era "ETS"
Here's the method in .NET:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.collectionextensions.getvalueordefault?view=net-7.0Here's the pre-github era feature request:
https://github.com/PowerShell/PowerShell/issues/2226