Ver artículos sobre "scripts"
-
Convert a CSV to JSON with PHP
por Tony Montana hace 2 semanas | 1 comentariosImagine 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...
-
Comando `tree` para Mac
por alombarte hace 5 meses | 0 comentariosExiste 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...
-
Get the absolute path in a bash script. Linux and BSD/Mac
por alombarte hace 1 año | 0 comentarios¿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.
-
Overburning script for Mac OS X, Record large films in Mac
por alombarte hace 4 años | 8 comentariosIf 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 anrgy. Sometimes are films, sometimes it's just one more song in the CD library you are creating... The...
-
Basic and simple iptables configurations for home users
por alombarte hace 4 años | 0 comentariosOpenBSD 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 configurations for a debian machine using iptables which I am not really used to. Since I tend to forget these...
-
Como conectarse a internet con un móvil symbian y Ubuntu
por alombarte hace 5 años | 0 comentariosEn 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 tiene que estar bien configurado para hacer de módem. Estos...
-
Script for compressing files with gzip within the terminal with date
por Manuel Aguilar hace 6 años | 0 comentariosThis 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 could be: chmod 755 gzip.sh This script does the following: Checks if you passed exactly 2...
