Scripts at Harecoded!
Convert a CSV to JSON with PHP
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 ...read more
Comando `tree` para Mac
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 ...read more
Get the absolute path in a bash script. Linux and BSD/Mac
¿Have you ever needed to get the absolute path to a script in a bash script? Here I explain how to set in a variable the current absolute path to the executed script and to its folder as well.read more
Overburning script for Mac OS X, Record large films in Mac
If you use the Finder burning tool to create your CDs, or an application that doesn't support overburning (surpass a little bit the CD or DVD maximum size) I am sure that some time you got ...read more
Basic and simple iptables configurations for home users
OpenBSD has been always my prefered distribution when I have to install a firewall based on a *NIX machine. The PF rules are what I am used to see. But last year I had to write several ...read more
Como conectarse a internet con un móvil symbian y Ubuntu
En un artículo anterior hablábamos sobre cómo conectarse a internet con un móbil nokia 3G y macintosh. Esta vez, nos conectaremos desde un linux (Ubuntu 6.10). Primero de todo el móbil ...read more
Script for compressing files with gzip within the terminal with date
This is a simple bash script to compress in tar.gz (gzip) format a file or folder appending date to file name. Save this file as gzip.sh and give it execution permissions. From terminal i ...read more
