Public Gists by therobot

Gravatar
Wed Nov 25 02:18:08 -0800 2009
1
2
3
# Taller de Chef: Administra sistemas como Ferran Adriá cocina
 
## Qué es Chef
Gravatar
Mon Oct 05 15:43:08 -0700 2009
1
2
3
#!/usr/bin/env bash
# By: Ernesto Jiménez <erjica@gmail.com>
#
Gravatar
Mon Sep 28 05:09:25 -0700 2009
1
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
Gravatar
Mon Aug 24 09:50:46 -0700 2009
1
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
Gravatar
Tue Jun 23 04:58:51 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
gems=`gem list --local`
Gravatar
Mon Apr 27 15:06:31 -0700 2009
1
2
3
before "deploy:rollback:revision", "deploy:rollback_database"
 
  desc "Rolls back database to migration level of the previously deployed release"
Gravatar
Mon Mar 30 04:59:01 -0700 2009
1
2
3
# 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 null AND users.activated_at is not null) GROUP BY users.id;
# User@Host: ideas4all[ideas4all] @ ifaws2 [10.20.0.125]
Gravatar
Sun Mar 29 18:31:00 -0700 2009
1
2
3
Electric-Sweat:trunk jacobo$ svn diff lib/tasks/local_deploy.rake
Index: lib/tasks/local_deploy.rake
===================================================================
Gravatar
Thu Mar 19 10:59:04 -0700 2009
1
2
3
________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"