Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
🔥⌛️(⧖)

Xavier Damman xdamman

🌍
🔥⌛️(⧖)
View GitHub Profile
@maxogden
maxogden / readme.md
Last active May 12, 2021
Video stabilization using VidStab and FFMPEG (Mac OS X)
View readme.md

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
padde / openvpn.md
Last active Apr 30, 2018
OpenVPN on Ubuntu 12.10 at DigitalOcean
View openvpn.md

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
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](https://ffmpeg.org/trac/ffmpeg/wiki/Fi

@wadey
wadey / iterm2.zsh
Last active May 7, 2021
Change iTerm2 tab color when using SSH
View iterm2.zsh
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
# https://iterm2.com/documentation-escape-codes.html
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
karmi / ElasticSearch.org.Website.Search.FieldNotes.markdown
Created Apr 8, 2011
Field notes gathered during installing and configuring ElasticSearch for http://elasticsearch.org
View ElasticSearch.org.Website.Search.FieldNotes.markdown

ElasticSearch.org 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
consumer.
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