Perfil de Harecoded!

Datos de tu blog

Harecoded!
Contenido
Harecoded - Handling bugs with l♥ve ...
Temas y etiquetas
linux,ubuntu,development,mac
Autores
alombarte , Manuel Aguilar y Tony Montana
URL
http://www.harecoded.com

Últimos articulos en Harecoded!

  • Merge Json files

    por Tony Montana | hace 1 semana | 0 comentarios

    With this small script you could merge some json files in a new one in json validated format.  The script uses each file name like array key. Look the example: file1.json: {"array1":["elem1","elem2","elem3"],"array2":["elem1","elem2","elem3"]} file2.json...

  • Convert a CSV to JSON with PHP

    por Tony Montana | hace 2 semanas | 1 comentario

    Imagine a data list dumped in a plain text file (e.g: CSV) and you need to convert it to JSON format. You could use this simple php script to do such task. It's the simplest version but from here you can customize it to fit your requeriments. Usage: php script_name.php...

  • Activar y cambiar los colores de la terminal + Prompt

    por alombarte | hace 2 meses | 0 comentarios

    Ya uses iTerm, Terminal o cualquier otra herramienta en Mac, para ver y tunear los colores de tu terminal basta con editar el fichero ~/.bash_profile e incluir lo siguiente: export CLICOLOR='true' export LSCOLORS="gxfxcxdxbxegedabagacad"  La primera línea activa los colores, la...

  • Cómo hacer un sparse checkout en Git

    por alombarte | hace 2 meses | 0 comentarios

    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 Activar sparse checkout Decirle qué carpetas queremos Añadir el repo remoto...

  • Move a SVN repository to Git with the whole commit history

    por alombarte | hace 3 meses | 0 comentarios

    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 repository, checking out my SVN repos with git itself via the git svn set of commands....

  • Upload an existing Git repository to a remote GitHub, Bitbucket, Beanstalk...

    por alombarte | hace 3 meses | 1 comentario

    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 code to GitHub, Beanstalk or any other repository you like, commands are just the...

  • Instalar PHP 5.3 en CentOS

    por alombarte | hace 3 meses | 1 comentario

    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 los tiempos. Ofrecen la versión 5.3 como un paquete separado (php53), lo...

  • Synchronize your VIM configuration across different machines

    por alombarte | hace 4 meses | 0 comentarios

    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 and store the same configuration for all the environments in my Dropbox folder. The idea is to have a...

  • GMAIL: Bulk deleted emails based on date

    por alombarte | hace 4 meses | 0 comentarios

    When I created my gmail account, there was a counter giving you everyday more space. They "sold us" the product as if you never had to delete email again. By looking at that counter it seemed that by now I should have more than a Terabyte of data, truth is that after many years I have less than...

  • Conectar por SSH sin password (autenticación de clave pública)

    por alombarte | hace 5 meses | 0 comentarios

    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 sin usuario ni contraseña todo lo que hace falta es compartir una clave entre cliente y...

  • Comando `tree` para Mac

    por alombarte | hace 5 meses | 0 comentarios

    Existe una utilidad llamada "tree" en Windows y Linux que sirve para ver un listado de directorio en un formato ASCII un poco más agradable a la vista. Si no quieres bajarte los MacPorts para esta pequeña utilidad lo más fácil es crear un script de una línea y enlazarlo en /bin para...

  • Delete keys by pattern using REDIS-cli

    por alombarte | hace 5 meses | 0 comentarios

    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 drawback: memory is cheap and fast, but is finite. From time to time (e.g: cron job) I need to clean up the...

  • How to backup your full Flickr account (script)

    por alombarte | hace 6 meses | 0 comentarios

    Why you would like to copy all your images stored at Flickr to your computer? Well, maybe you want to browse them later offline, maybe you want to stop paying your PRO account, or to keep them just in case... In any case, Flickrtouchr is a simple command-line script to backup Flickr. You don't...

  • Cómo cambiar la extensión a múltiples ficheros desde terminal (unix shell)

    por alombarte | hace 7 meses | 0 comentarios

    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/'` ; done Esto cambiaría todas las extensiones phtml por tpl del directorio en que lo...

  • Writing complex regular expressions

    por alombarte | hace 10 meses | 0 comentarios

    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. Some days ago, a very smart guy at work named Zoltán recommended us to write complex regular...