If you want to monitor your Amazon Web Services (AWS) Elastic Cloud Compute (EC2) instances using crontab and AWS SDK. Here in this example I have chosen php (7.1).
Install AWS SDK
composer require aws/aws-sdk-php
Want to ensure that your services (Apache, MySQL, HHVM) on your linux instance are running 24*7? Then you can use crontab for that. This job runs every minute to check the status of the service and if it is not running then, it starts the service. Continue reading “Monitor services (Apache, MySQL, HHVM) using crontab”
For this example it is recommended that you have the latest most stable release of Node.js + npm installed.
Now you will need express to run a simple server. Continue reading “Redirect users based on the HTTP Request Header – Node.js”
Using a subject to create an observable is the recommended method of inter-component communication by the official angular documentation.
The following code was tested with Angular 5.2.2. Continue reading “Create an Observable the right way – Angular 5”