viernes, 4 de diciembre de 2009

bash: ejecutar un comando sólo si el anterior fue exitoso

An and list has the form

     command1 && command2

command2 is executed if, and only if, command1 returns an exit status of zero.

ref: Bash Reference Manual

martes, 1 de diciembre de 2009

Cuenta SSH enjaulada: scponly

What is scponly?

scponly is an alternative 'shell' (of sorts) for system administrators who would like to provide access to remote users to both read and write local files without providing any remote execution priviledges. Functionally, it is best described as a wrapper to the tried and true ssh suite of applications.


http://www.amadourias.com/?p=94

jueves, 22 de octubre de 2009

DELETE de múltiples tablas con ORDER BY o LIMIT

Puede especificar múltiples tablas en un comando DELETE para borrar registros de una o más tablas dependiendo de una condición particular en múltiples tablas. Sin embargo, no puede usar ORDER BY o LIMIT en un DELETE de múltiples tablas.

Ref: http://dev.mysql.com/doc/refman/5.0/es/delete.html

sábado, 17 de octubre de 2009

png to ico online converter

ConvertICO is a Free Online Converter - fast (you don't need to register or to install software) and easy to use (you need only 3 clicks to convert the PNG or ICO file) - able to convert PNG to ICO (Windows Vista compatible icons) and ICO to PNG format files.

Ref: http://www.convertico.com/

martes, 8 de septiembre de 2009

Subversion vs. Git

When deciding on the best repository type for your team, there are a number of important factors. Subversion has become the de facto standard in our industry for the past several years, however, there is a new and very powerful version control system: Git.

Git is a distributed version control system, originally developed by Linus Torvalds for Linux kernel development. It has grown over the years to serve as the development platform for many other very large and active open source projects. While Git can be an excellent solution for many teams, it does have a slightly higher learning curve than its Subversion counterpart.

For a detailed explanation of the advantages of Git over Subversion, and vice versa, please see the following from the official Git Wiki: GitSvnComparison.

jueves, 3 de septiembre de 2009

find para mover archivos antiguos

El sgte comando mueve los archivos (no directorios) de la carpeta en donde se encuentra (sin acceder a subdirectorios) accedidos hace más de 10mins a la carpeta "carpeta"

find . -maxdepth 1 -type f -amin +10 -exec mv '{}' carpeta/ \;

miércoles, 2 de septiembre de 2009

Interface Hall of Shame








Ref: http://homepage.mac.com/bradster/iarchitect/shame.htm