// writing
Notes and write-ups
everything tagged scripting
Extending your application with Lua scripts
I was always intrigued when I heard about people creating custom mods in games with the help of the mysterious Lua scripting language. I didn’t care much about the games themselves, but more about the idea of extending and customizing something to my imagination. I’m not a gamer, but I love automation and modifying things, so this naturally sparked my interest.
Novus just got better (again)
After a couple of months since the last release, here I am again, announcing a new updated version of Novus - v0.0.5. This version includes new features and minor enhancements, but most importantly, it introduces the **trust** **command—**something I have wanted to have since the very beginning.
How to use sudo without a password in your programs
When writing software, sometimes it is necessary to run shell commands that require sudo privileges. This can happen, for instance, when building a CLI tool that needs to write into protected filesystem directories or modify certain files. Such commands are usually prepended with the sudo keyword which is then followed by a password prompt. This is very important from the security perspective, so the OS can protect sensitive data. However, sometimes it might become annoying when using a tool that constantly asks for a password.
Novus v0.0.4 released 🚀
Ever since releasing the first version of the binary, I knew there were more things I wanted to add and improve in Novus. There have been a couple of smaller releases since then, but it was only bug fixes I stumbled across while using the binary.

Introducing Novus - a local HTTPS proxy for better developer experience
Novus is a tiny command-line utility designed to enhance local web development. It consists of several tools to provide production-like web URLs on your local machine in a matter of seconds. You don’t have to bother by figuring out how to configure HTTP server, DNS resolutions or manage SSL certificates. Everything is handled by Novus so you can focus on your work.

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. This can be verified easily by running

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. In the ideal situation, we want to complete the migration process without anyone even noticing that something has changed.
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.
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.