Skip to content

Instantly share code, notes, and snippets.

View zedtux's full-sized avatar

Guillaume Hain zedtux

View GitHub Profile
@zedtux
zedtux / gist:700350
Created November 15, 2010 13:27
brew install ffmpeg
$ brew install ffmpeg
==> Downloading http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100903-2245.tar.bz2
######################################################################## 100.0%
==> ./version.sh
==> ./configure --prefix=/usr/local/Cellar/x264/r1713M-c276662 --enable-shared
==> make install
/usr/local/Cellar/x264/r1713M-c276662: 7 files, 2.5M, built in 19 seconds
==> Downloading http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/faac/1.28 --disable-debug --disable-dependency-tracking
@zedtux
zedtux / gist:700359
Created November 15, 2010 13:33
brew install ffmpeg - config.err
# ./configure --disable-debug --prefix=/usr/local/Cellar/ffmpeg/0.6 --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --disable-indev=jack --enable-libx264 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
ARCH_EXT_LIST='
altivec
amd3dnow
amd3dnowext
armv5te
armv6
armv6t2
armvfp
iwmmxt
~/Developments $ ls -l ~/.rvm/hooks/after_cd rvm:ruby-1.9.2-p0
-rw-r--r-- 1 guillaumeh staff 30 19 Nov 16:32 /Users/guillaumeh/.rvm/hooks/after_cd
~/Developments $ cat ~/.rvm/hooks/after_cd rvm:ruby-1.9.2-p0
#!/usr/bin/env bash
echo $PWD
~/Developments $ cd . rvm:ruby-1.9.2-p0
~/Developments $
~/Developments $ set -x ; cd . ; set +x rvm:ruby-1.9.2-p0
+-zsh:47> cd .
+cd:1> [[ x. == x... ]]
+cd:3> [[ x. == x.... ]]
+cd:5> [[ x. == x..... ]]
+cd:7> [[ x. == x...... ]]
+cd:10> cd .
+__rvm_project_rvmrc:2> local cwd
+__rvm_project_rvmrc:5> cwd=/Users/guillaumeh/Developments
+__rvm_project_rvmrc:7> :
Feature Booking
In order to create an agenda
As a user
I want to be able to add, edit or remove bookings
Scenario Outline: Delete booking
Given I speak <My tongue>
When I go to my bookings page
And I press "<Delete booking>"
Then I should see "<Booking deleted>"
$ thin start
>> Using rack adapter
/Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_activity-0.0.2/lib/mongoid_activity.rb:1:in `<top (required)>': uninitialized constant Object::Mongoid (NameError)
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `block (2 levels) in require'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `each'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `block in require'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `each'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `require'
from /Users/zedtux/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler.rb:112:in `require'
@zedtux
zedtux / postgresql.rb
Created February 17, 2011 14:47
Brew formula to install Postgresql 8.4.4 with working url
require 'formula'
require 'hardware'
class Postgresql <Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-8.4.4.tar.bz2'
md5 '4bf2448ad965bca3940df648c02194df'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old
@zedtux
zedtux / regex.txt
Created April 5, 2011 04:02
Check string contains only group of two characters
regex: ^([A-Z]{2}\b\s*)+$
good_string = "AB CD EF GH"
bas_string = "AB CD EFE GH"
@zedtux
zedtux / gist:1951710
Created March 1, 2012 18:00
ioctocat debug logs when receiving "Could not load the feed."
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 58085.
2012-03-01 18:59:02.097 iOctocat[58085:15203] (07f5ed60.0092)-[GHResource loadData] Loading https://api.github.com/user
====
@zedtux
zedtux / web_steps.rb
Created November 14, 2012 19:29
Capybara 2.0 web_steps.rb file to avoid "Ambiguous match, found N elements matching xpath" (Capybara::Ambiguous)
# TL;DR: YOU SHOULD DELETE THIS FILE
#
# This file was generated by Cucumber-Rails and is only here to get you a head start
# These step definitions are thin wrappers around the Capybara/Webrat API that lets you
# visit pages, interact with widgets and make assertions about page content.
#
# If you use these step definitions as basis for your features you will quickly end up
# with features that are:
#
# * Hard to maintain