Yay! I pust published my first powershell module here
https://www.powershellgallery.com/packages/FavouriteDirectory
The next version will be published from a github action
Sunday, June 29, 2025
Thursday, June 26, 2025
ai cli's
I've recently been very impressed with Claude Code,
I used to to make a bug-fix in pl/sql.
Now I see that Gemini CLI has been released and I have to dive straight in,
firstly I can run it in a powershell window directly in windows.
Claude made me figure out how to run VSCode in a dev container just so that I could have a bash shell.
I'm grateful for that experience but a bit short on RAM for extra containers ... and it makes the fan hum.
Update
Gemini Cli, seems to hit a rate limit unexpectedly quickly based on what I had been led to believe.
Lot's of :
Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
I used to to make a bug-fix in pl/sql.
Now I see that Gemini CLI has been released and I have to dive straight in,
firstly I can run it in a powershell window directly in windows.
Claude made me figure out how to run VSCode in a dev container just so that I could have a bash shell.
I'm grateful for that experience but a bit short on RAM for extra containers ... and it makes the fan hum.
Update
Gemini Cli, seems to hit a rate limit unexpectedly quickly based on what I had been led to believe.
Lot's of :
Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
Saturday, June 21, 2025
Show Physical memory in bytes on Powershell 7
The following command will output one line per bank installed showing the number of bytes available
Write-Output $(Get-CimInstance -ComputerName localhost -Classname Win32_PhysicalMemory).capacity
Write-Output $(Get-CimInstance -ComputerName localhost -Classname Win32_PhysicalMemory).capacity
Thursday, June 19, 2025
New mini project idea - favdir
favdir is a powershell module which implementa new command.
fd foo
This changes your directory to foo, but the foo argument is a keyword for a longer directory name
e.g. C:\Users\user.name\Documents\projects\foo
fd foo C:\longdir\foo
registers or replaces a registered favdir
fd -d foo
Removes a registered favdir
The favdir registry is stored in ~.favdir
Inspired by bashmarks https://github.com/huyng/bashmarks
fd foo
This changes your directory to foo, but the foo argument is a keyword for a longer directory name
e.g. C:\Users\user.name\Documents\projects\foo
fd foo C:\longdir\foo
registers or replaces a registered favdir
fd -d foo
Removes a registered favdir
The favdir registry is stored in ~.favdir
Inspired by bashmarks https://github.com/huyng/bashmarks
Wednesday, June 11, 2025
TIL git show
How did I miss this useful command for so long.
To quickly compare versions across branches without switching:
To quickly compare versions across branches without switching:
> git show dev:package.json
> git show main:package.json
aws-cli from docker
Yesterday I managed to connect to aws-cli from within a docker container.
This was useful guide
Note to self when mounting volumes to docker in windows paths muct be absolute
This was useful guide
Note to self when mounting volumes to docker in windows paths muct be absolute
docker run --rm -it -v C:/my-project-dir/.aws:/root/.aws --entrypoint /bin/sh amazon/aws-cli
Thursday, May 15, 2025
First deployment using bicep
Embracing gitops I have now managed to setup repo to deploy a service bus to Azure using Bicep templates running in a pipeline on devops.
Subscribe to:
Posts (Atom)