Super-Charged Cmdlet Aliases
It works like magic, but it works - Bring your aliasing to a whole other level!
Posted on 2020-12-02
(Last modified on 2025-07-28)
Backstory I recently wrote a post about PowerShell Aliasing for the folks over at ScriptRunner.
The one issue I had while researching for this post was this:
You can not create a alias for a function and overwrite one of it’s parameters at the same time while keeping nice features like tab-complete.
For a concrete example of this visit please look at the original post.
At the end of the post I asked if anyone had a solution to this problem - and the internet delivered!
[Read More]
Linked: Powershell Aliasing
A deep dive into aliasing with PowerShell
Posted on 2020-12-02
(Last modified on 2025-07-28)
I published a post about aliasing with PowerShell over on the ScriptRunner blog.
Read now: English or Deutsch
Why You Want To Install PowerShell On Windows
Why installing PowerShell on Windows may actually be a good idea
Posted on 2020-11-28
(Last modified on 2025-07-28)
Q: Wait a minute! Don’t I already have PowerShell?
A: Yes. However you may want to continue reading because things are never as simple as they appear.
[Read More]
Collections and Randomization
Randomize Collections in PowerShell
Posted on 2020-11-18
(Last modified on 2025-07-28)
Randomizing a collection is useful in a variety of situations and in most languages it is fairly straight forward.
[Read More]
How To Grep With PowerShell
It's just like Bash, but more powerful!
Posted on 2020-09-30
(Last modified on 2025-07-28)
Filtering data, from log or config files to data returned by an api,
is an important operation to remove noise from it and make further analysis possible.
[Read More]
How To Tail With PowerShell
How to replace tail in PowerShell
Posted on 2020-09-21
(Last modified on 2025-07-28)
Printing the last or first, few lines of a file is a common operation in day to day operations.
On Linux most people will, without thinking twice, use tail
and it’s counterpart head
to achieve this.
[Read More]
Bash Utilities In Powershell
Replacing common bash utilities in PowerShell
Posted on 2020-09-20
(Last modified on 2025-07-28)
Whats the first thing coming to mind when seeing a command line?
For most people it is Linux, be it Ubuntu, Debian or RedHat. And it is completely understandable. A big part of our industry has a background in Linux and sees it as the superior system for quick scripts and the like.
In this series I want to challenge this notion. PowerShell can compete with, an in some cases outperform, the quick scripts and common daily tasks done in Linux shells.
[Read More]
Vmware Tools Copy Files
Posted on 2020-09-17
(Last modified on 2022-07-01)
Docs
Copy To Guest
$vm = Get-VM -Name TEST
Get-Item "X:\yourfile.txt" | Copy-VMGuestFile -Destination "c:\temp" -VM $vm -LocalToGuest -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"
Copy From Guest
$vm = Get-VM -Name TEST
Copy-VMGuestFile -Source c:\yourfile.txt -Destination c:\temp\ -VM $vm -GuestToLocal -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"
Hello World
Who am I and what to expect on this blog
Posted on 2020-09-13
(Last modified on 2025-07-28)
Ansible VMware Connection Plugin & Become
Posted on 2020-07-02
(Last modified on 2021-08-09)
When using VMware as the connection plugin to connect to remote hosts you commonly set two facts for username and password:
ansible_vmware_tools_user: "mkamner" ansible_vmare_tools_password: "Super Secret PW" This will work just fine for windows and with many tasks on linux.
However, if you want to use become: true on linux it will fail with the strangest error messages.
For example: apt will fail, because it can’t acquire the lock file
[Read More]
IANA To openSSL Ciphers
Posted on 2020-03-07
Handy table to map IANA IDs of ciphers to their openSSL IDs used in web server configurations,
for example [[nginx]] ssl_ciphers
or proxy_ssl_ciphers
https://testssl.sh/openssl-iana.mapping.html
Ansible
Posted on 2020-01-01
(Last modified on 2024-06-10)
Need to automate a VM?
you need Ansible!
ArgoCD
Posted on 2020-01-01
(Last modified on 2024-06-10)
Django
Posted on 2020-01-01
(Last modified on 2024-06-10)
My preferred framework for building web apps
GitLab
Posted on 2020-01-01
(Last modified on 2024-06-10)
My preferred git server and CI/CD system, either gitlab.com or self-hosted.
Helm
Posted on 2020-01-01
(Last modified on 2024-06-10)
A good way to pull in external dependencies into Kubernetes
For writing my own manifests I prefer to use Kustomize.
Hugo
Posted on 2020-01-01
(Last modified on 2024-06-10)
My static site generator of choice, used to build my blog among other things.
JQ
Posted on 2020-01-01
(Last modified on 2024-06-10)
A incredibly powerful tool for manipulating the heaps of JSON files and responses I interact with daily.
A lot of times I also use ijq
instead, which is a interactive version of jq
.
Kubernetes
Posted on 2020-01-01
(Last modified on 2024-06-10)
I have run and am still running loads of Kubernetes clusters, mostly on-premise.
Kustomize
Posted on 2020-01-01
(Last modified on 2024-06-10)
My prefered tool for writing and provisioning home-built manifests to [[kubernetes]]