Skip to content

Instantly share code, notes, and snippets.


Xavier Damman xdamman

View GitHub Profile
maxogden /
Last active Sep 23, 2022
Video stabilization using VidStab and FFMPEG (Mac OS X)

Video stabilization using VidStab and FFMPEG

Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.

Here's an example video I made

Install ffmpeg with the vidstab plugin from homebrew

brew install ffmpeg --with-libvidstab
padde /
Last active Apr 30, 2018
OpenVPN on Ubuntu 12.10 at DigitalOcean

OpenVPN on Ubuntu 12.10 at DigitalOcean

Install OpenVPN

sudo apt-get install openvpn

Generate Server Certificates

sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2

cd /etc/openvpn/easy-rsa2

faleev / gist:3435377
Created Aug 23, 2012
Compile FFmpeg on Ubuntu
View gist:3435377

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](

wadey / iterm2.zsh
Last active Sep 23, 2022
Change iTerm2 tab color when using SSH
View iterm2.zsh
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
if [[ -n "$ITERM_SESSION_ID" ]]; then
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"
karmi /
Created Apr 8, 2011
Field notes gathered during installing and configuring ElasticSearch for
View Website Search: Field Notes

These are field notes gathered during installation of website search facility for the ElasticSearch website.

You may re-use it to put a similar system in place.

The following assumes:

View js interview questions
1. Write a function that will create and return a simple
write-once data object. The object should have a set(key,
val) and get(key). Setting a key a second time throws an
error. The internal state should not be visible to the
1a. Use ES5.
1b. Don't use ES5, so that it works in IE.
2. You have a web form with two options, "yes" and "no". Only
one can be selected at a time. If the user selects "no", then