curl: Modify DNS Resolution
How SELinux screws with scripts when run over VMware Tools
SELinux by default prohibits certain things from working through VMware tools (Ansible connection or plain API).
This can be solved two ways:
- Disabling SELinux: BAD, but easy
- Writing a custom SELinux policy: complicated but more secure
Note: Adding/Changing this policy through a VMware tools connection is thankfully possible
Example policy
This policy is the base for a VMware tools policy and allows entering the rpm context (yum).
module custom-vmtools 1.0;
require {
type rpm_script_t;
type vmtools_unconfined_t;
class process transition;
}
#============= vmtools_unconfined_t ==============
allow vmtools_unconfined_t rpm_script_t:process transition
Replace Line In YAML While Keeping Indentation Using Ansible
Looping Dates macOS
GitLab Merge Request from the CLI
Speed up your work with git by automatically creating Merge Requests for your git push
Download Full Website Copy
Sometimes it’s nice to download a best effort version of a website, for example before completely redesigning it.
domain=WEB.SITE
wget $domain --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains $domain
Linked: Powershell PSDefaultParameterValues
A deep dive into PowerShell parameter defaults
The Null-Coalescing Operator
A closer look at the null-coalescing operator and how it can help us in writing smarter, more concise scripts.
Today we take a closer look at the null-coalescing operator and how it can help us in writing smarter, more concise scripts.
[Read More]Renovate Bot
My tool of choice for doing dependency maintenance/update type of stuff for both [[infrastructure-as-code]] and [[software-projects]]
GumLab
My first ever product
Delete Your Old VMware Snapshots
How To Find With PowerShell
Finding files, do I even need to describe how important this is?
Finding files, do I even need to describe how important this is?
[Read More]Looking back at 2020, Four Months Of Blogging
A look back on four months of blogging and engaging the PowerShell community
My Stand On Affiliate Links
What I think about affiliate links
Super-Charged Cmdlet Aliases
It works like magic, but it works - Bring your aliasing to a whole other level!
Linked: Powershell Aliasing
A deep dive into aliasing with PowerShell
Why You Want To Install PowerShell On Windows
Why installing PowerShell on Windows may actually be a good idea
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
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!
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]