This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | set number | |
| set ruler | |
| set showcmd | |
| set showmode | |
| set showmatch | |
| set smartcase | |
| set smartindent | |
| set expandtab | |
| set shiftwidth=2 | |
| set tabstop=2 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 1 $ | |
| 2 LoadModule passenger_module <%= `passenger-config about root | tr -d '\n'` %>/buildout/apache2/mod_passenger.so$ | |
| 3 <IfModule mod_passenger.c>$ | |
| 4 #PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.41$ | |
| 5 PassengerRoot <%= `passenger-config about root` %>$ | |
| 6 PassengerDefaultRuby /usr/bin/ruby$ | |
| 7 </IfModule>$ | |
| 8 $ | |
| 9 $ | |
| 10 <VirtualHost *:80>$ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | .dl-horizontal{ | |
| dt { | |
| min-height:20px; | |
| height:auto !important; | |
| height:20px; | |
| } | |
| dd { | |
| min-height:20px; | |
| height:auto !important; | |
| height:20px; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm | |
| yum install -y mysql-community-server | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mkdir /mnt/volume0 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | W, [2013-08-06T00:53:53.050447 #3928] WARN -- : Can't verify CSRF token authenticity | |
| I, [2013-08-06T00:53:53.050957 #3928] INFO -- : Completed 422 Unprocessable Entity in 4ms | |
| F, [2013-08-06T00:53:53.068750 #3928] FATAL -- : | |
| ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): | |
| actionpack (4.0.0) lib/action_controller/metal/request_forgery_protection.rb:163:in `handle_unverified_request' | |
| actionpack (4.0.0) lib/action_controller/metal/request_forgery_protection.rb:170:in `handle_unverified_request' | |
| actionpack (4.0.0) lib/action_controller/metal/request_forgery_protection.rb:177:in `verify_authenticity_token' | |
| activesupport (4.0.0) lib/active_support/callbacks.rb:377:in `_run__853284013__process_action__callbacks' | |
| activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks' | |
| actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action' | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require("lsqlite3") | |
| -- Igmar: Wanneer closen we dat DB object eigenlijk ? | |
| db = sqlite3.open('/etc/asterisk/users.sqlite') | |
| --CONSOLE = "Console/dsp" -- Console interface for demo | |
| --CONSOLE = "DAHDI/1" | |
| --CONSOLE = "Phone/phone0" | |
| TRUNK = "DAHDI/G1" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # in Controller Class... | |
| columns = [:id, :column1, :column2, :column3] | |
| model_class_array = ModelClass.where(:id => params[:id]).pluck(:id, :column1, :column2, :column3) | |
| @model_classes = model_class_array.map{|row| Hash[*[columns, row].transpose.flatten]} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rsync -rv --exclude=.git demo demo_bkp | |
| rsync -rv --exclude=.svn demo demo_bkp | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | helpers do | |
| def protected! | |
| response = callcc do |cont| | |
| auth = Rack::Auth::Digest::MD5.new(cont, "Administrator only") do |username| | |
| "password" # username is ignored, or Password is always 'password' in this example. | |
| end | |
| auth.opaque = $$.to_s | |
| auth.call(request.env) | |
| end |