Skip to content

Instantly share code, notes, and snippets.

fab fabriziosalmi

Block or report user

Report or block fabriziosalmi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jniltinho /
Last active Jul 25, 2019
How to Install Nginx and Google PageSpeed on Debian/Ubuntu
## Install PageSpeed on Debian 8/9 and Ubuntu 16.04 64Bits
## Debian ISO:
## No Link abaixo tem o pacote do Nginx para o Debian 8 64Bits
## Run as root (sudo su)
View music bpm visualization sketch
int[] lines = new int[10];
int counter = 0;
float startTime, currTime;
float hitTime;
float bpm = 170;
PShape bassDrum;
bennylope /
Created Apr 22, 2016 — forked from webkader/
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.

holms /
Last active Mar 15, 2019
Install full ffmpeg in debian wheezy (with aac(m4a) and x264 support)
# Add multimedia source
echo "deb wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-get update
# Go to local source directory
cd /usr/local/src
yendor / ParallelTask.php
Created Nov 14, 2011
Base class for doing forked, parallel execution in PHP easily
View ParallelTask.php
class ParallelTask
protected $pid = null;
public $max_workers = 8;
protected $num_workers = 0;
public function run()
You can’t perform that action at this time.