(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
| require 'rubygems' | |
| require 'activesupport' | |
| require 'net/http' | |
| path = "/report_abuse" | |
| params = {"abuse"=>{"title"=>"momo", "resource_type"=>"Post", "resource_id"=>"15", "referer"=>"/conversatio/blogs/8-blog-de-nurse1/posts/15-el-cua | |
| derno-de-notas-del-capitn-de-la-copa-davis-albert-costa", "description"=>"momo"}}.to_param | |
| http = Net::HTTP.new("localhost", 3000) | |
| http.post(path, params) |
| for f in `ack -l '<br>' app`; do sed -i.bak -e 's/<br>/<br\/>/g' $f; done | |
| # ack -l '<(br|BR)\s*>' app |
| require 'rubygems' | |
| require 'w3c_validators' | |
| include W3CValidators | |
| @validator = MarkupValidator.new | |
| # override the DOCTYPE | |
| #@validator.set_doctype!(:html32) |
| class LightningTalk | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| # request |
| SELECT table_name, table_rows | |
| FROM INFORMATION_SCHEMA.TABLES | |
| WHERE TABLE_SCHEMA = '**YOUR SCHEMA**'; |
| sudo apt-get install build-essential | |
| sudo apt-get install curl | |
| sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev | |
| sudo apt-get install ruby1.8 rubygems1.8 | |
| bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) |
(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
| CFLAGS='-g -O0 -DRUBY_EXPORT -D_GNU_SOURCE=1' rvm install ruby-1.8.6-p287 --with-openssl-dir=/home/jvp/src/openssl-0.9.8c |
| ssh -L local_port:destination_host:destination_port -l username middle_host |
| En Mozilla 1.7 y Firefox 2.0 o posteriores es necesario activar la preferencia: signed.applets.codebase_principal_support. Para ello, introducir about:config en el campo de entrada de la URL y pulsar Enter. Se obtendrá una lista de las preferencias. Buscar la preferencia anterior, realizar doble-click sobre ella y cambiar su valor de false a true. |