Skip to content

Instantly share code, notes, and snippets.

View therobot's full-sized avatar

Jacobo García López de Araujo therobot

View GitHub Profile
________Compiling Hammer/dbg/obj/chrome/test/ui/run_all_unittests.o
Install file: "Hammer/dbg/obj/chrome/browser/libbrowser.so" as "Hammer/libbrowser.so"
Install file: "Hammer/dbg/obj/chrome/browser/libbrowser.so" as "Hammer/dbg/lib/libbrowser.so"
________Compiling Hammer/dbg/obj/chrome/test/ui/ui_test.o
________Linking Hammer/dbg/obj/chrome/test/perf/perf_tests
________Linking Hammer/dbg/obj/chrome/app/chrome
/home/fedora/chrome/home/chrome-svn/tarball/chromium/src/chrome/Hammer/dbg/lib/libviews.so: undefined reference to `views::FocusManager::AddFocusChangeListener(views::FocusChangeListener*)'
/home/fedora/chrome/home/chrome-svn/tarball/chromium/src/chrome/Hammer/dbg/lib/libviews.so: undefined reference to `views::FocusManager::RemoveFocusChangeListener(views::FocusChangeListener*)'
/home/fedora/chrome/home/chrome-svn/tarball/chromium/src/chrome/Hammer/dbg/lib/libviews.so: undefined reference to `views::FocusManager::RegisterAccelerator(views::Accelerator const&, views::AcceleratorTarget*)'
/home/
Electric-Sweat:trunk jacobo$ svn diff lib/tasks/local_deploy.rake
Index: lib/tasks/local_deploy.rake
===================================================================
--- lib/tasks/local_deploy.rake (revisión: 4109)
+++ lib/tasks/local_deploy.rake (copia de trabajo)
@@ -10,7 +10,8 @@
CONFIG_FILE_LIST = ['iso_countries.rb']
INITIALIZERS_FILE_LIST = ['local_config.rb']
- ULTRASPHINX_FILE_LIST = ['production.base']
# Query_time: 5 Lock_time: 0 Rows_sent: 4477 Rows_examined: 37504
SELECT (users.id * 9 + 4) AS id, 0 AS id, '' AS authors, '' AS body, 'User' AS class, 4 AS class_id, '' AS comment, '' AS content, countries.name AS country_name, country_translations.name AS country_tname, '' AS dedicated_to, '' AS description, '' AS id_title, location.name AS location_name, location_translations.name AS location_tname, users.login AS login, '' AS name, '' AS stripped_content, '' AS thought_for, '' AS title, users.user_location_name AS user_location_name FROM users LEFT OUTER JOIN locations AS location ON location.id = users.location_id LEFT JOIN ( location_translations ) ON ( users.location_id = location_translations.location_id ) LEFT JOIN ( locations l2,countries ) ON ( users.location_id=l2.id and l2.country_id=countries.id ) LEFT JOIN (locations l3, country_translations) ON (users.location_id=l3.id and l3.country_id=country_translations.country_id ) WHERE users.id >= 5001 AND users.id <= 10000 AND (users.deleted_at is n
@therobot
therobot / gist:102770
Created April 27, 2009 22:06
Rolls back database to migration level of the previously deployed release
before "deploy:rollback:revision", "deploy:rollback_database"
desc "Rolls back database to migration level of the previously deployed release"
task :rollback_database, :roles => :db, :only => { :primary => true } do
if releases.length < 2
abort "could not rollback the code because there is no prior release"
else
rake = fetch(:rake, "rake")
rails_env = fetch(:rails_env, "production")
migrate_env = fetch(:migrate_env, "")
#!/usr/bin/env ruby
gems=`gem list --local`
gem_command="/usr/local/ruby/bin/gem"
gems.each do |gem|
gem.strip!
gem.delete!("()")
gem_args = gem.split(/ /)
find . -name 'deploy.rb' -exec grep "current/public/system/maintenance.html" {} \; -a -exec gsed -i "s:current/public/system/maintenance.html:#{current}/public/system/maintenance.html:" {} \; -a -exec svn ci {} -m "Fix: path of the directory was wrong in maintenance_off task, correcting it" -print
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
#!/usr/bin/env bash
# By: Ernesto Jiménez <erjica@gmail.com>
#
# This script will generate aliases for all your applications
# in your /Applications folder in OS X allowing you to easily
# open applications from your command line.
# Examples:
# safari http://ernesto-jimenez.com
# finder ~
# quicktime-player /path/to/video.mov
# Taller de Chef: Administra sistemas como Ferran Adriá cocina
## Qué es Chef
- ¿Que es?
Framework de integración de sistemas. Nos proporciona recursos y asbtracciones de alto nivel para
manejar nuestra máquina.
- ¿Para que Sirve?
- Consistencia de nuestra plataforma.
- Mayor control de la plataforma.
*** Exception NameError in PhusionPassenger::Railz::ApplicationSpawner (uninitialized constant Rails) (process 8140):
from /home/wadus/sites/responde/config/preinitializer.rb:4
from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:297:in `preload_application'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:248:in `initialize_server'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/utils.rb:255:in `report_app_init_status'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:233:in `initialize_server'
from /opt/ruby-enterprise/l