Skip to content

Instantly share code, notes, and snippets.

View michaelxor's full-sized avatar

Michael Hofer michaelxor

View GitHub Profile
@michaelxor
michaelxor / install-ffmpeg-amazon-linux-for-lambda.sh
Last active May 5, 2016 04:35 — forked from gboudreau/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" == "root" ]; then
echo "You should not execute this script as root."
exit 1
fi
INSTALL_DIR="/tmp/ffmpeg-source"
/**
* a simpler version of debug_backtrace()
*
* @param boolean $show_args Pass true to display argument values in the output
* @param boolean $expand_objects when $show_args == true, pass true to expand object values, default to false to avoid over-verbosity
*
*/
function simple_backtrace( $show_args = false, $expand_objects = false )
{
$tracers = debug_backtrace();
#!/bin/bash
#
# Python
#
# This will install the latest python 2.x branch via
# Homebrew, install virtualenv and virtualenvwrapper packages
# globally via pip, then create a base virtual environment under
# the branch and install the packages in requirements.txt
#
# alternate version that does not depend on virtualenvwrapper is