Development at Harecoded!
Cómo hacer un sparse checkout en Git
Si quieres hacer clone de un proyecto parcialmente y no llevarte todo el árbol es muy sencillo. Si todavía no tienes los ficheros es tan sencillo como: Crear una carpeta e inicializar Git ...read more
Move a SVN repository to Git with the whole commit history
It is in your mind, like a worm that eats away the apple, "I have to switch to Git". And one day it happens and you realize that it was not that diffcult. I started using Git as my local ...read more
Upload an existing Git repository to a remote GitHub, Bitbucket, Beanstalk...
These are the steps I followed to upload my existing local git repository to a new Bitbucket repository while keeping the whole commit history. You can use this simple steps to move your source ...read more
Instalar PHP 5.3 en CentOS
Me tienen contento! Hace muchísimo que deberían haber incluído la versión de PHP 5.3 en los paquetes php por defecto de CentOS, pero parece que se van a quedar con la 5.2 hasta el fin de ...read more
Synchronize your VIM configuration across different machines
If you are a Vim user, chances are that you also work with several machines, and you spread the same configuration over them. I do share my vim configurations between Windows, Mac and Linux ...read more
Conectar por SSH sin password (autenticación de clave pública)
Esta es una de aquellas cosas que uno hace una y otra vez y al final pierde 10 minutos intentando recordar los comandos o buscando la información. Para conectar a un servidor remoto por SSH ...read more
Delete keys by pattern using REDIS-cli
I do store a lot of statistical data in Redis, storing information on what users do and behave every day, week, month and so on... But storing a huge amount of data in memory has a little ...read more
Cómo cambiar la extensión a múltiples ficheros desde terminal (unix shell)
Para renombrar la extensión de muchos ficheros a la vez en la terminal, se puede hacer con la siguiente línea: for file in *.phtml ; do mv $file `echo $file | sed 's/\(.*\.\)phtml/\1tpl/'` ; ...read more
Writing complex regular expressions
Regular expressions are usually hard to read and understand. Even if you have a lot of experience on the subject, when you retakeone that you wrote some time ago, it is difficult to catch up. ...read more
Cómo revertir los cambios de una revisión en SVN
Si eres usuario de subversion te habrá pasado alguna vez que después de hacer commit y probar posteriormente el código has visto que debes volver a una versión anterior y dejar el código tal y ...read more
