Skip to content

Instantly share code, notes, and snippets.

View AlexanderC's full-sized avatar
💭
I might be slow to respond.

Alex Cryp AlexanderC

💭
I might be slow to respond.
View GitHub Profile
@AlexanderC
AlexanderC / tree.php
Last active December 20, 2015 04:59
PHP bug reproducement
<?php
/**
* @author AlexanderC
*/
class Tree
{
/**
* @var Node
*/
@AlexanderC
AlexanderC / gist:4525951
Created January 13, 2013 20:13
Spherus alt method
<?php
//...
private static function ReadDirectory($path, $includeHiddenFiles = false, $readDirectories = true, $readFiles = true)
{
$result = [];
if (!$readFiles && !$readDirectories) {
return $result;
@AlexanderC
AlexanderC / gist:3986104
Created October 31, 2012 09:36 — forked from faleev/gist:3435377
Compile FFmpeg on Ubuntu

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi