RabbitMQ Exchanges With PHP

This tutorial will show you how to setup RabbitMQ in terms of an exchange, rather than for a queu as demonstrated below: The source code for this tutorial can be downloaded from Github. Related Posts RabbitMQ Job Queue With PHP Deploying RabbitMQ With Docker What is An Exchange? An exchange…

Read this article

Mobile Friendly Youtube Embedding

Youtube uses iframes to embed videos on other sites which doesn't work well for mobile devices because they have a fixed width and height. Below is an example that will work well on the desktop, but not the mobile: Whilst you could use a solution whereby you add some extra…

Read this article

RabbitMQ Job Queue With PHP

This tutorial will show you how to deploy and utilize a job queue in PHP using the RabbitMQ server we deployed through Docker. Why Use Job Queues? Job queues allows your infrastructure to gracefully cope with massive fluctuations in demand without having to scale up/down rapidly. For example, if…

Read this article

Run Supervisor In Foreground

If supervisor is not behaving as you expect, then you might want to have it run in the foreground and view the output. To do that, find the supervisord.conf file which is usually at /etc/supervisor/supervisord.conf. Adding the following lines to the end of it to tell…

Read this article

Getting Started with Supervisor

After installing Supervisor, we need to know how to configure it. In this tutorial we are going to create a script and configure Supervisor to make sure that it is always running. Create the Script First let's create our example PHP script. For this example, the script is going to…

Read this article

Using S3 To Host a Static Site

This tutorial will show you how to get a very basic site hosted online using Amazon S3. This will only work with static sites that do not use any server-side language to create dynamic content, such as PHP. You are limited to pure HTML, Javascript, CSS and Images. Steps Create…

Read this article

Configure Seafile To Send Emails Through Gmail

You need to configure Seafile to be able to send emails in order to have new users sent their password via email, or for the user to recieve password reset notifications. This tutorial will show you how to configure Seafile to use your existing Gmail account in order to send…

Read this article

Amazon Linux - Check If Need Reboot

Below is a BASH script you can use to tell you whether you need to reboot your instance in order to use a later kernel. #!/bin/bash LAST_KERNEL=$(rpm -q --last kernel | perl -pe 's/^kernel-(\S+).*/$1/' | head -1); CURRENT_KERNEL=$(uname -r); if [ $LAST_KERNEL != $CURRENT_…

Read this article

Record Skype Calls For Free

Linux users can download and install the Skype call recorder to record their calls for free. Ever since Microsoft took over skype, this tool has been harder to find in Google search results, so this post is just here so I don't forget.…

Read this article

Deploying RabbitMQ With Docker

Below is a BASH script you can use to deploy your own RabbitMQ server using docker. There are many different ways to configure your deployment, but this is a broad generic method that will: Deploy with the web interface to manage your server. Specify a username and password for managing…

Read this article