Ali Hamidi’s Blog 🤘

I write code. I bike and sometimes I play games.

New Blog

After using ghost.com for ages, I finally got around to switching over to using a static site running on vercel. I considered using Jekyll or Gatsby but ultimately settled on using hugo instead. I’d played around with it in the past so I was somewhat familiar already and the idea that it’s written in Go was appealing (not that I really intended to make any changes myself of course).

September 12, 2022 · 1 min

Kafka Pixy and TLS

While looking for a suitable REST/Web proxy for Kafka I stumbled upon Kafka Pixy. Out of the box Kafka Pixy supports a very simple REST API as well as a more performant gRPC API and so it looked like a great option. Setting it up looked very straight forward until I realized that it did not support TLS connections to Kafka. I searched the Github issues and sadly my initial understanding was confirmed with issue #178 - TLS between kafka-pixy and kafka....

February 19, 2020 · 1 min · Ali Hamidi

Recursive find & replace in Vim

After switching to Vim from Sublime (via a brief stint on Atom) there’s one feature that I used infrequently, but was incredibly invaluable when needed and that Recursive find & replace. I wish there was a simple shift+cmd+f to bring it up, but here’s how to achieve something similar in Vim. Populate Vim args: :args `find <dir_to_look_in> -type f` Find & replace: :argdo %s/<replace_this>/<with_this>/gce | update g - Change all occurrences on each line c - Confirm before replacing e - Skips pattern not found errors | update - Saves buffer after applying change Alternatively, you could just use vim-easygrep…

September 18, 2015 · 1 min · Ali Hamidi

Scala Dev with Vim

After spending several hours spread across 2 or 3 days I’ve finally arrived at a (more or less) usable Scala Dev environment on Vim. I’ve outlined my setup below! Goals Code Completion - Done Syntax Highlighting - Done :A access to tests (Alternates) - Pending Guide Install Java 8 (I initially had 1.7 installed it was effectively unusable due to constant outOfMemory issues) # Update brew cask brew cask update # Install latest Java brew cask install java Install eclim...

September 16, 2015 · 1 min · Ali Hamidi

Projectionist for Go

I’ve been using Vim exclusively for all of my Go development work for the past year or so and over that time I’ve slowly been customizing my setup. There are a number of essential plugins, including Vim-go and YouCompleteMe, but after recently working on a Rails project I encountered Vim-rails which includes some useful commands to jump around the project such as: :Econtroller users :Emodel thing :Eview blah Along with setting up alternates for jumping between source files and test files etc…...

September 9, 2015 · 1 min · Ali Hamidi