19.11.12

Ver infomacion de un paquete en Ubuntu/Debian (apt)

Para mostrar informacion sobre un paquete del sistema "apt" que utilizan distribuciones como Ubuntu o Debian podemos ejecutar el comando 'apt-cache show [paquete]' de la siguiente manera:
$ sudo apt-cache show python-django
En el ejemplo anterior el paquete del cual queriamos informacion era python-django y nos devolvio algo asi:
Package: python-django
Priority: optional
Section: python
Installed-Size: 35800
Maintainer: Ubuntu Developers 
Original-Maintainer: Chris Lamb 
Architecture: all
Version: 1.3.1-4ubuntu1.3
Depends: python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8)
Recommends: libjs-jquery
Suggests: python-psycopg2, python-psycopg, python-mysqldb, python-flup, python-sqlite, python-yaml, geoip-database-contrib
Filename: pool/main/p/python-django/python-django_1.3.1-4ubuntu1.3_all.deb
Size: 4270360
MD5sum: b33afef564434b353b10ce6ebf9feb46
SHA1: 9a04253cffe0d1c86fe9b99aedd3957d71daad42
SHA256: 971463c4edc8785794ca3eb937a0c9029d83e039beea0127b493178f0d21c329
Description-en: High-level Python web development framework
 Django is a high-level web application framework that loosely follows the
 model-view-controller design pattern.
 .
 Python's equivalent to Ruby on Rails, Django lets you build complex
 data-driven websites quickly and easily - Django focuses on automating as much
 as possible and adhering to the "Don't Repeat Yourself" (DRY) principle.
 .
 Django additionally emphasizes reusability and "pluggability" of components;
 many generic third-party "applications" are available to enhance projects or
 to simply to reduce development time even further.
 .
 Notable features include:
  * An object-relational mapper (ORM)
  * Automatic admin interface
  * Elegant URL dispatcher
  * Form serialization and validation system
  * Templating system
  * Lightweight, standalone web server for development and testing
  * Internationalization support
  * Testing framework and client
Homepage: http://www.djangoproject.com/
Description-md5: efe2f6ec2ae89851c710c280956fa785
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y

18.11.12

GIT con colores desde la terminal

Para tener unos lindos colores en GIT en nuestra consola, tenemos que ejecutar el siguiente comando:

$ git config --global --add color.ui true

Ahora, cuando hagamos un diff, status y demas, vamos a tener coloreado en verde/rojo el output de GIT!

Por ejemplo, un diff:

$ git diff
diff --git a/index.php b/index.php
index 211eb49..f0a6b1b 100644
--- a/index.php
+++ b/index.php
@@ -18,7 +18,7 @@
  * NOTE: If you change these, also change the error_reporting() code below
  *
  */
-       define('ENVIRONMENT', 'development');
+       define('ENVIRONMENT', 'production');
 /*
  *---------------------------------------------------------------

O un status:

$ git status
# On branch master
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#       modified:   application/config/database.php
#