Sinon assert vs Chai assert

Main idea One day I was covering my code with tests and take note that Sinon also has an assertion as Chai has. I investigated it a little deeper and looked like it makes sense to use Sinon instead of Chai in some cases. Implementation The example of the test is based on class which... » read more

How to test AWS Lambda function

If you as me and want to test some new feature on AWS but don’t have a time to read the tons of documentation. That time I wanted to test a Lambda function which I created on AWS, but what to do next with it I didn’t know. I suggest a short instruction with quick... » read more

Debug your PHP code on Remote Linux server using PHPStorm and xDebug with its port forwarding through SSH

One e-commerce site had a very strange issue, it stop working as expected after cache cleaning. This issue appeared only on production server and couldn’t be reproduced on local machine. So there wasn’t another solution how debug problem directly on the server. It’s really important to closely check all configuration because one little mistake and... » read more

Send emails through AWS SES from console using SwiftMailer

Testing Email Sending Using the Command Line Verifying a Domain With Amazon SES Setting Up Easy DKIM for a Domain Can I use Amazon’s SES with Symfony2 and the Swiftmailer Bundle? Swiftmailer Spooling and Handling Failures Problems with Emails Received from Amazon SES Final script for check email sending <?php require __DIR__ . '/vendor/autoload.php'; use... » read more

Rebuild docker image and push to AWS ECR

Login to docker docker login Login to AWS ECR (try skip this step) AWS_PROFILE=terraform $(aws ecr get-login --no-include-email --region eu-central-1) NOTE. Command above should automatically login to AWS ECR, if it isn’t true, you should try to run command without $(...), just AWS_PROFILE=terraform aws ecr get-login --no-include-email --region eu-central-1 Then copy and past output to... » read more

Minikube installation on Linux Mint

This installation process will guide you through running and accessing Kubernetes Cluster on a Linux Mint. You will be using apt-get, Docker, Minikube, VirtualBox and kubectl. Minikube installation Minikube is a lightweight Kubernetes implementation that deploys a Virtual Machine locally, and runs a basic cluster with one master and one minion together running on this... » read more