Skip to content

Instantly share code, notes, and snippets.

View jhchabran's full-sized avatar
🧀

Jean-Hadrien Chabran jhchabran

🧀
View GitHub Profile
def greet
"Hello you!"
end
@jhchabran
jhchabran / autoexec.cfg
Created September 10, 2012 21:39
Dota 2 configs
dota_screen_shake "0"
dota_minimap_hero_size "700"
dota_apm
bind "g" dota_recent_event
alias "+range" "dota_range_display 1200"
alias "-range" "dota_range_display 0"
bind "1" "+range"
alias "sfrangeQ" "dota_range_display 200;alias sfrange sfrangeW"
alias "sfrangeW" "dota_range_display 450;alias sfrange sfrangeE"
" Installing bundles to /home/tech/.vim/bundle
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-cucumber'
Bundle 'tpope/vim-rake'
Bundle 'tpope/vim-bundler'
Bundle 'mileszs/ack.vim'
Bundle 'pangloss/vim-javascript'
Bundle 'mattn/gist-vim'
Bundle 'mattn/webapi-vim'
require 'sinatra/base'
require 'sinatra/json'
module Photograph
class Service < ::Sinatra::Base
helpers Sinatra::JSON
def artist
unless @artist
puts "CWEIR"
module Cloudkey
VERSION = "0.0.3"
end
ld: warning: directory not found for option '-L/opt/local/lib'
./ext/purelib.rb:2: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.0.0],
MBARI 0x6770, Ruby Enterprise Edition 2011.03
@jhchabran
jhchabran / gist:1343035
Created November 6, 2011 15:33
xvfb init script
#!/bin/bash
XVFB=/usr/bin/Xvfb
# XVFBARGS=":99 -fbdir /var/run -ac"
XVFBARGS=":99 -nolisten tcp -fbdir /var/run"
PIDFILE=/var/run/xvfb.pid
case "$1" in
start)
echo -n "Starting virtual X frame buffer: Xvfb"
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
@jhchabran
jhchabran / apéro_ruby_20_sept.md
Created September 21, 2011 08:42
Compte rendu de l'apéro ruby, spécial Freelance ( au loop, 20 septembre 2011 )

Intro

  • Comment s'y prendre pour devenir freelance en france ( rails )
  • statut idéal en fonction des tranches de gains
  • Quels types de clients
  • Dev conseils, formations
  • Collaboration type avec un client
  • TDD
  • Design avant ou après le dev
@jhchabran
jhchabran / gist:1115499
Created July 30, 2011 12:58
Homebrew + Lion + Postgres, fails to build
% brew install postgresql
Also installing dependencies: readline, ossp-uuid
==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%==> Patching
patching file vi_mode.c
patching file callback.c
==> ./configure --prefix=/usr/local/Cellar/readline/6.2.1 --mandir=/usr/local/Cellar/readline/6.2.1/share/man --infodir=/usr/local/Cellar/readline/6.2.1/share/info --enable-multibyte
@jhchabran
jhchabran / gist:1115457
Created July 30, 2011 12:05
Rvm + Lion, Ree fails to install with a segfault
[2011-07-30 13:59:44] ./installer -a /Users/jh/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2011.03.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.
You can expect this from the installation process:
1. Ruby Enterprise Edition will be compiled and optimized for speed for this
system.