Snippets of the day – Thursday, November 21, 2013

Posted on Posted in Snippets

orange-scissors-pen

Here are some of the most recently published snippets!

Python execute shell cmd

This python script runs a shell in linux and executes the cmd or script in a new thread. Python polls the thread till it has some output and save it to file, as well as standard error redirection to file. Then close both file descriptors.

Open the snippet

Author:    lbottaro

Amazon AWS – PHP: Generate public download URL

This snippet demonstrates how to generate a public download URL for a file stored in your S3 Bucket.
Target file must have ACL public permissions set.
In order to use this service you must enable Amazon Simple Storage Service (Amazon S3) in your account.

Open the snippet

Author:    mporru @ Amazon_AWS_PHP_API

Leave a Reply

Your email address will not be published. Required fields are marked *