-
Running Prometheus + Grafana on a single VPS
I run a bunch of services on a single Hetzner VPS. Nothing fancy — a few Node.js apps behind nginx, some cron jobs, the usual. For a long time my “monitoring” was
htopover SSH and hoping nothing breaks while I sleep. That’s embarrassing to admit, but I think a lot of solo devs are in the same boat. -
SSH config tricks I wish I knew years ago
For years I SSH’d into servers by typing the full command every time.
ssh -i ~/.ssh/id_rsa -p 2222 user@192.168.1.100. Sometimes with a jump host in the middle. It worked, but it was tedious and error-prone. Then I actually read thessh_configman page and felt mildly embarrassed about all the time I’d wasted. -
Terraform state management — best practices I follow religiously
State is Terraform’s Achilles heel and nobody really talks about it until something goes wrong. I’ve been using S3 backend with DynamoDB locking from day one — I’ve seen enough horror stories from teams that didn’t. Here’s what I do and why.
-
GitHub Actions replacing Jenkins — what actually got better
I finally killed my Jenkins server last month. It had been running on a tiny VPS for three years, eating 512MB of RAM just to exist, and breaking every time I forgot to update a plugin. GitHub Actions has been around long enough now that I gave it a real shot — not just for toy projects, but for the stuff Jenkins was actually doing.
-
Mirkotik router backup with SSH and SFTP
Everybody knows how important it is to backup. I use Mikrotik Routers in my home network and have quite complex configuration which I would not want to write again from scratch. Prior to this day I have used scheduled script on Mikrotik to create backups locally, transferring it out of router itself into another location is great way to increase backup durability.
-
Sentry 9 - fix for PagerDuty legacy integration.
Recently I’ve been involved in investigating why
PagerDutyintegration withsentry9.1.1 doesn’t work. Same thing was happening to 9.1.2 version. The problem was not visible in UI but in logs such error message was repeating:19:13:04 [INFO] sentry.plugins.pagerduty: notification-plugin.notify-failed. (plugin=u’pagerduty’ error=u’Error Communicating with PagerDuty (HTTP 400): Event object is invalid’)
No incoming event on PagerDuty side assured me that this problem is real.
-
Migration to Google Cloud Dns from different provider.
Decision to pick DNS provider should be, in my opinion, based on currently used cloud environment. If you use AWS then
Route53, GCP thenCloud Dns, etc. It’s easier to manage it and audit then. Not the case for multicloud usage but most of the companies I worked for were using single cloud.If DNS domain was registered before cloud adoption then your task might be to migrate DNS. Such migration is not uncommon and in this blog post I will write about changing
NSrecords fromgodaddyto googleCloud Dns. -
Mass file renaming containing nonASCII characters to ASCII
Recently I found a problem with playing samba resources with VLC. Polish characters were breaking playback because file could not be found. Strangely enough this happened only for files with lowercase Polish letters like
ąśżźćłóęń.
Removing those letters helped to fix playback on test file but I had more than one file to fix.I tried to find a way to do rename all files quickly and easy and get rid of nonASCII characters and in this post I’m providing easiest, quickest and robust way to this.
-
Infrastructure continuous deployment with terraform and atlantis
Atlantisis a self-hosted golang application that listens forTerraformpull request events via webhooks. I’ve incorporated it in my recent engagement in CriticalStart but also I use it in my private infrastructure.I think the idea is great for making
terraformworkflow more easy for infrastructure teams. Withatlantiseveryterraformchange need to go through review process. When PR is created it automatically runplandisplaying its output as a comment. Applying is also done by adding a comment. It’s highly configurable.Using
atlantisallows to closing wholeterraformworkflow on PR page! I always had the feeling that checking out branch and runningterraformlocally is a waste of time. Now you can just look atplanin PR, do the review and continue with other work.
Sounds good? Let’s dig it! -
Free git repository for private projects - GitHub vs GitLab vs BitBucket
Choosing provider for private git repositories back in the day was though.
GitHubis most known and I’d even say iconic. They started to offer unlimited private repos for paid plans in 2016.
GitLabandBitBucketat that time offered unlimited private repositories. Wow! They got me.
Currently alsoGitHubprovides unlimited private repositories and with recent introduction ofGitHub actionsI think it’s good time to do the comparison between them and see who provide best services in free plan.Note:
In this post I’m focusing on free plans but you are free to explore paid option.