Generate Keycloak Access Tokens with Curl
2021-07-09
I’ve been working more with Keycloak lately and I’m loving it. But one thing I wanted to do while testing is to generate access tokens easily. Today I wrote a small wrapper script and thought I should share.
Logstash Hanging When Rebooting Ubuntu
2021-06-24
Edit: 31/7/2022: I’m currently migrating all my logstash configurations to Vector , it has been much kinder to me than Logstash has ever been.
I maintain an ELK server running on Ubuntu 20.04 for testing. One issue I have faced is the Logstash service hanging on reboot. The server would not reboot and I end up having to power cycle.
Detect if your Script is Running in CRON
2021-06-21
In my previous post I discussed how I use a wrapper script to back up a fleet of servers.
Back Up Multiple Servers With zxfer
2021-06-21
ZFS has been one of my favorite tools since I discovered it in 2014. I can’t count how many times it has saved me from disasters. I’ve even had systems that wouldn’t boot but still managed to recover data from them with a rescue disk.
Get A List of EC2 Instances And The AMIs Used to Launch Them
2021-06-12
I was recently tasked with auditing the AMIs we are currently using for our AWS account. I could have just checked all machines but thought jq might be a better way to do it, and it actually is.
Read More - Get A List of EC2 Instances And The AMIs Used to Launch Them
Using Dynamic DNS with pf, iptables, and gomplate
2021-06-06
It is always better to tighten the firewall configuration on your servers. Limiting SSH connections from a defined list of IP addresses greatly reduces the attack surface as well as load; the firewall is much more efficient at blocking connections than sshd. The best approach is to have a static IP or connect through a bastion host which is protected via a VPN. But sometimes that is not feasible.
Read More - Using Dynamic DNS with pf, iptables, and gomplate
Why You Shouldn't Use the Windows 10 SSH Agent
2021-06-04
I have recently switched to using Sublime Merge as my Git client. I know other clients have the same features but for me Sublime Merge is just a pleasure to use.
Simulate Pressing the Reset Button
2021-06-03
We’ve all been there, something gets stuck and there is no way to fix it except for a reboot, but even rebooting through SSH isn’t working and you don’t have physical access to the server or an out-of-bound way to power cycle. This has mostly bit me while working on NFS but there has been other cases. Adding it here for reference.
Writing Reusable Terraform Code, Part 3
2021-06-02
Writing Reusable Terraform Code, Part 2
2021-05-20
In part 1 , I talked about modules and how they are the first step into reducing duplicate resources. Here I will talk about workspaces .
About Me
Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.