This file contains 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
# 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. |
This file contains 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
#!/usr/bin/env bash | |
# By: Ernesto Jiménez <[email protected]> | |
# | |
# 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 |
This file contains 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
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh |
This file contains 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
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 |
This file contains 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
#!/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(/ /) |
This file contains 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
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, "") |
This file contains 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
# 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 |
This file contains 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
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'] |
This file contains 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
________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/ |
NewerOlder