Why you should adapt Kotlin now

Java is a very old and stable language with a large ecosystem around it. The stability of ecosystem and mature libraries allows us to write production ready application with confidence. However, it lacks many features that the modern programming languages like Ruby, C#, Python and others offer. [Read More]

Setting up Laravel with Docker : Part 3

This is part 3 in the series of setting up Laravel with docker post. In this post we will improve on what we have done so far and add a small utility script to easily interact with our containers. [Read More]

Setting up Laravel with Docker : Part 2

In part 1 of this post, we built a docker image to run Laravel application. In this post we will install the same Laravel application but use docker-compose to do so. Docker compose allows to easily work with multi container applications and prevents from having to type large docker commands as we did in part 1. We will also use redis for caching and mysql for data storage along with [Read More]

Resume bash script after reboot

I often write bash scripts to automate common tasks in my projects. Often the script makes changes that requires a reboot. And when the machine finishes rebooting the script needs to resume from where it left. Following script creates a temporary file that we use as a flag in the script to check if the script is resuming from reboot. We also temporarily update the .bashrc or .zshrc to trigger [Read More]