Skip to content

Instantly share code, notes, and snippets.


Xavier Damman xdamman

View GitHub Profile

Keybase proof

I hereby claim:

  • I am xdamman on github.
  • I am xdamman ( on keybase.
  • I have a public key whose fingerprint is 44A7 D05F F1F6 D0B8 0F79 15A6 1426 1B13 FD43 0CDC

To claim this, I am signing this object:

View gist:e3387e1adf51aeb021d0

Compile avconv 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).

Note: Copy and paste the whole code box

# Add this to your ~/.bash_profile
# Now you can just type in terminal storifydev
# It will start mongod, redis-server, chdir to your working dir, open textmate, and launch Chrome
function storifydev() {
sudo rm /data/db/mongod.lock
echo "Starting MongoDB"
sudo mongod > /dev/null &
echo "Starting Redis"
redis-server> /dev/null &
View snippet.txt
## Frontend developer (HTML5/CSS3)
### About us
Storify helps its users tell stories with social media.
* We launched our private beta as a finalist at TechCrunch Disrupt in September 2010, and won the Startup Accelerator at South by Southwest in 2011.
* Our users include the top sites on the Web: [The New York Times](), Mashable, [The Washington Post](, Los Angeles Times, [ReadWriteWeb](, [Al Jazeera]( and many others worldwide, along with top brands like Levi’s and Samsung.
* We’re based in San Francisco in a newly remodeled loft office in the heart of the city.
* We’re a small team and the initial employees will play a key role in shaping the product and company culture.
* We use cutting edge technologies including node.js and MongoDB.
View file.txt
Thu Aug 11 12:05:02 [initandlisten] connection accepted from #239877
Thu Aug 11 12:05:02 [conn239877] update storify.stories query: { permalink: "" } nscanned:1
2 key updates 152ms
Thu Aug 11 12:05:02 [conn239877] end connection
Thu Aug 11 12:05:17 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:05:37 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:05:40 [conn239856] update storify.stories query: { _id: ObjectId('4e4411b918d7b6652b0384fd') } nscanned:1 moved 399ms
Thu Aug 11 12:05:57 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:06:17 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:06:37 [replslave] repl: sleep 20sec before next pass
View snippet.txt
;(function() {
Slideshow = function() {
var self = this,
slides = [],
container = $('#elements'),
storify = new Storify(),
xdamman / zemanta source
Created Jul 10, 2012
Storify source example Zemanta
View zemanta source
"_id": {
"$oid": "4e49f6a1b756ba595aae31e5"
"name": "zemanta",
"label": "Zemanta",
"icon": "",
"href": "",
"status": "",
"defaults": {
xdamman / upgradeNode.js
Created Dec 19, 2012
Upgrade the default Joyent Smart Machine Node Image 1.3.3 to using node 0.8.16 (I don't like the newest 1.4.0 image since it doesn't come with out-of-the box push to a git repo and deploy)
View upgradeNode.js
#!/usr/bin/env bash
pkgin -f update
pkgin install gcc-compiler
mkdir src
cd src
curl -O
gtar -xpf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure --with-dtrace --prefix=/opt/nodejs/v0.8.16/
gmake install