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’ »

Quick file search for Windows

Can’t believe I haven’t heard of this utility before (in my defense, I haven’t been a heavy Windows user for a few years now): Anyway: the software’s name is “Everything” – get it here Amazing indexing speed of all your drives and immediate lookup of any filename, including parts of a name, regex searches etc. …

Continue reading ‘Quick file search for Windows’ »

Compiling binaries for AWS Lambda

To use binaries from within AWS lambda functions, you need to have the compiled binaries available within the lambda package used and for that you sometimes need to compile those yourself. To do that, you can either compile on an Amazon Linux docker image (more information on how to do this here and from the …

Continue reading ‘Compiling binaries for AWS Lambda’ »

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?’ »