Category Archives: Linux

New Chatbot project for fun

In the past few days, I decided to try something new so I started to play with bots and created this nice little guy here. The idea of the project is simple, you ask him about the price of any crypto currency and he will reply back, you can even specify the equivalent currency that […]

Running Laravel Dusk tests on Bitbucket, the easy way

So today I was trying to run and see if I can manage to get Laravel dusk to run on Bitbucket pipelines, and after too many tests, I was able to do so \(^ ^)/. In this post I’ll explain the minimum requirements you need to do that, to make things simple, I created a […]

[snippet] Running Traefik with Docker Swarm

The other day, I wanted to try using Traefik in real world scenario where I’ll have a docker instance running and Traefik will do the routing/proxying based on the domain name that I will provide, sadly this was not so easy, so after few hours of searching I found the solution. You may ask, why it didnt […]

Run crontab within Alpinelinux Docker image

This post will explain how we can run cronjobs within Docker image based on Alpine Linux distribution, so am going to use my newest PHP 7.2 docker image, which you can find at zaherg/php-7.2-xdebug-alpine . First, we will have to pull the docker image using the command: Now that we have downloaded the image, we […]

How to run Kong servers with SystemD

Kong is one of my favourite projects, I do like it and keep pushing my current company and most of who I know to use it. So today I’ll talk about installing version 0.10.x and how to run it automatically via SystemD on Ubuntu 16.04. Let’s talk about installing Kong, basically, we have two steps: First, […]

Renew let’s encrypt SSL via systemd

I’ll assume that you are using Ubuntu 16.04 and nginx on your server, as I’ll talk about installing Certbot and then how to setup the renew process. To install Certbot (the simple way) you need to update your system and run the following commands: After installing Certbot you will need to run the following command which will […]

What you should use to write a CLI app

I was going to write a post about this, but then I found out that I don’t have a big plan for what am going to write, so instead, I prefer that you go and read this article: Re-Introducing Symfony Console – CLI PHP for the Uninitiated! its not exactly what I wanted to write, but why […]

Why I choose CLI over web interface

Yesterday I was working on a piece of code which needs to communicate with beanstalkd server, so I spent about an hour or so trying to figure out which framework to use, Lumen, Slim or even Laravel. The code was not that much complicated, just getting some data and passing it to the queue server and […]

How to test and auto deploy your laravel code from Gitlab

Few days ago, I was playing with the new Laravel 5.4 and Gitlab CI, and got to the point where I wanted the CI to test my code once I push it. Using google lead me to this post on Laracasts, and it was the starting point for me, there you can get important files […]

Docker compose wait don’t run it now

One of the main problem you will face when you work with Docker is that you are not 100% sure that the service on the ImageX is ready for you to use it or even for ImageY to communicate with it. For example, lets say that you have the ImageX which run MySQL/MariaDB (or any […]