Feature Flags

What are feature flags? In two words - “if statements”. No, but seriously feature flags are a very simple, yet very powerful tool that can find its place in many projects. The idea is to be able to control certain critical parts or essentially any relevant logical parts of the code and say if they should be enabled or not....

Showing the active Firebase project in the command line

If you are working on a project where Firebase is used, most likely you have a separate project created for each environment (dev, staging, prod, sometimes maybe even more). During the development, it often happens that you need to configure something using Firebase CLI. Whenever you intend to make a change you want to make sure the right project is set as active....

How We Migrated All User Files to AWS S3

Migrating data is often a challenging job, especially when every little mistake can instantly impact a user’s experience. Thus, it is necessary to research the task properly, pinpoint possible issues, and make sure the description is totally clear and everyone knows what is the expected result. Nevertheless, errors may (and most probably will) occur during the process so it is also important to keep that in mind and design the solution in a way that anticipates that and handles it accordingly....

Sharing gRPC protobufs between microservices

If you work with gRPC you need to find a way of sharing proto files across individual microservices. I just got into this “gRPC-and-microservices” thing recently and had to research and learn everything so now I want to share how I tackled it. When I started looking for possible options I found out some people were using a mono repository for keeping all microservices code and proto definitions in one place....

Automatically pausing Spotify on macOS

I really enjoy listening to some good music before sleeping. But the question is who will stop the music once you fall asleep, right? If you’re using iPhone you can schedule a timer which will stop playing after time elapses. But what if you want to have the same functionality on Macbook too?...

When dream comes true (USA trip)

Yes I did it, I can’t believe I’m really here! 😍 (After taking part-time job for last two years in addition to high school I finally earned enough money to begin my two weeks United States trip). These were the first words I had in my mind when we disembarked at New York’s JFK airport....

Watching your UNIX scripts

In one project I needed to run the Laravel’s queue:work command for sending emails on production. The problem was that sometimes it quit silently and emails were accumulating in database. To solve it you would probably install program like supervisord or similar. But, the thing is that you don’t always have a possibility to install that program for example like when you are on hosting (my case)....

How I bypassed our school internet system. Twice.

I live at student’s dormitory and we have got one rule here. Internet here turns off every day after 11pm. And it sucks 😏. So my roommate and I wanted to do something with that. We knew that internet is controlled via program which is located in computer in office downstairs....

Sending exceptions to mail in Laravel

Update 2019: This article was written at the time when I didn’t have a lot of knowledge about error handling, system architecture and common practices in general. It is definitely not a recommended solution for tracking application errors. There are many better ways for handling these situations (e.g. Sentry). When you are developing a website you always try to fix all bugs and potential errors....