Unsere Setup-Routine für eine Rails-App mit Nginx, Passenger, rvm auf einen Host Europe-VPS mit Ubuntu 10.4.
apt-get update
apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \
| ;(function(Modernizr, window) { | |
| Modernizr.addTest('positionfixed', function () { | |
| var test = document.createElement('div'), | |
| control = test.cloneNode(false), | |
| fake = false, | |
| root = document.body || (function () { | |
| fake = true; | |
| return document.documentElement.appendChild(document.createElement('body')); | |
| }()); |
| Timecop.travel( 10.minutes.ago ) do | |
| # do some stuff in the past | |
| end | |
| # Return back to normal |
| # Helpers | |
| def git_update(message) | |
| git :add => ".", :commit => "-m '#{message}'" | |
| end | |
| def git_remove(file) | |
| git :rm => file | |
| end |
| ~$ ARCHFLAGS='-arch i386 -arch x86_64' | |
| ~$ rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes | |
| ~$ wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.0/RubyCocoa-1.0.0.tar.gz/download | |
| ~$ tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0 | |
| ~/RubyCocoa-1.0.0$ ruby install.rb config --build-universal=yes | |
| ~/RubyCocoa-1.0.0$ ruby install.rb setup | |
| ~/RubyCocoa-1.0.0$ sudo ruby install.rb install |
| // Credit goes to Ashley Ford, since the idea of this snippet | |
| // was taken from his blog article at http://papermashup.com/experimental-jquery-tooltips/ | |
| // this is a "self-sustained" tooltip, and i stripped the AJAX | |
| // part since i don't need it for now | |
| $(document).ready(function() { | |
| // Tooltip, probando | |
| $("[rel^='tooltip']").bind('mouseover', function(){ | |
| var theMessage = "Tooltip: "+$(this).attr('rel').split(":", 2).slice(1, 2); | |
| $('<div class="tooltip">' + theMessage + '</div>').appendTo('body').fadeIn('fast'); |