Search
522 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
-
@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
-
@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.
-
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
-
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
-
Here's the talk I gave at the PowerShell and #DevOps Summit:
GitOps: Beyond Patterns and Principles
https://m.youtube.com/watch?v=AqoIpaGRqog&list=PLfeA8kIs7CoftSa3hQ9dQseIxdSMBZO_z&index=46
-
Found that playlist.
If you're interested in #GitOps, the CNCF #OpenGitOps project #GitOpsCon was in Seattle last month the week after the PowerShell and DevOps summit.
They have all their videos posted to YouTube already, and here's the playlist:
https://www.youtube.com/playlist?list=PLj6h78yzYM2OyAZIMbJPOsamT2aLKZX6b
-
@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. 🙄
-
@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
-
@seanm yeah, as far as I know, it's just this: https://learn.microsoft.com/en-us/windows/configuration/taskbar/configure-windows-10-taskbar
... and that caveat is awful:
> If you use a provisioning package or import-startlayout to configure the taskbar, your configuration will be reapplied each time the explorer.exe process restarts.
I was hoping there would be something about this for #DevBox but I don't see anything.
-
@[email protected] the #xargs equivalent in #PowerShell is powerful and amazing, but not text-based. 😉
1. You can use the FullName property _inside_ the foreach-Object:
Get-ChildItem ~\Downloads -Recurse -File | ForEach-Object { perl .\bin\sanitize-file-name.pl $_.FullName }
2. But you don't need the FullName property in modern PowerShell -- it will pass the FullName of a file to a string parameter by default:
gci ~\Downloads -Recurse -File
| % {
perl .\bin\sanitize-file-name.pl $_
} -
Has anyone had problems since this week with New-AzApiManagementApiRevision?
#Azure #PowerShell #APIMSomething like this?
https://github.com/Azure/azure-powershell/issues/24144 -
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.
-
@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 -
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?
-
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
-
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!
-
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!
-
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!
-
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!