Skip to content

Instantly share code, notes, and snippets.

View faroncoder's full-sized avatar
:octocat:
coding lesiurely

Jeff Panasuik faroncoder

:octocat:
coding lesiurely
View GitHub Profile
@faroncoder
faroncoder / faron-fire-ffmpeg.sh
Last active December 31, 2015 10:19
Bash to fire off ffmpeg encoder to initiate encoding. Built for icrontab and inotify purpose. Will encode any media file the same directory where this script resides in.
#!/bin/bash
if [ ! -d bye ]
then
mkdir bye
fi
if [ ! -d lib ]
then
mkdir lib
fi
file=$(find ./ -type f ! -name "ffmpeg*" | sort | head -1)
Configuring Apache2 for webhosting multiples of websites on one ip address by using
Apache2's "Name-Domain-Based" virtual hosting websites.
This httpd.dat holds configurations for 2 websites, simply copy lines between
<VirtualHost *:80></VirtualHost>.
BIG EMPHASIS TO LEAVE *:80 untouched or whole system will fail.
you will see ## EDIT THIS ## which define the line that you can
edit whatever you like accordingly. But any lines without that notch,
This is based on https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide and this script is revised a little bit so it'd recompile h246 into libav before compiling FFMPEG.
Bash shell script
Ubuntu 12.04 12.10 13.04 13.10
x64 = success
x32 = debugging
Location of build: /home/yourhome/ffmpeg_src
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1