AWS Lambda – running python bundles and arbitrary executables – Part 2

In the previous post I explained how to create your AWS lambda environment using Docker, and how to package a python bundle and launch it on AWS Lambda. In this post I’ll show how you can launch arbitrary executables from an AWS Lambda function. To make this tutorial even more useful, the example of an …

Continue reading ‘AWS Lambda – running python bundles and arbitrary executables – Part 2’ »

AWS Lambda – running python bundles and arbitrary executables

In a previous post, I mentioned using Amazon Linux EC2 to create AWS Lambda compatible packages. While this works, another way to create packages that can run on AWS Lambda is to create them locally via a Docker Amazon Linux image . One downside I’ve found to this method is that sometimes these images are …

Continue reading ‘AWS Lambda – running python bundles and arbitrary executables’ »

Running Python Script from PHP as www-data

The problem Python script invoked from PHP via shell_exec and runs fine when PHP invoked from command line but fails when PHP triggered by browser access. Reason PHP, when triggered by a browser access is invoked by web server with the user www-data, while from the command line it is run as user ubuntu. Attempting …

Continue reading ‘Running Python Script from PHP as www-data’ »

Quick, fresh Ubuntu 16.04 image in VirtualBox

Download the VirtualBox image from https://www.virtualbox.org/wiki/Downloads Download the 16.04 Ubuntu image for VirtualBox from www.osboxes.org (the credential details for logging in are here: https://www.osboxes.org/faqs/) Open VirtualBox, click the New icon, Select ‘Linux’ for type, ‘Ubuntu 64-bit’ for version (assuming you downloaded the VirtualBox 64bit vdi), click next a couple of times until you reach the …

Continue reading ‘Quick, fresh Ubuntu 16.04 image in VirtualBox’ »

Selecting columns in Sublime Text turning your screen upside down?

The way to select a column in Sublime Text on Windows is by using + and then pressing the up or down arrow keys. You might get a surprise though if you try it in the form of you entire screen display flipping upside down. Some people don’t even know this is possible to do …

Continue reading ‘Selecting columns in Sublime Text turning your screen upside down?’ »