cli-apps: GNU parallel

NAME
parallel - build and execute shell command lines from standard input in parallel
SYNOPSIS
parallel [options] [command [arguments]] < list_of_arguments
parallel [options] [command [arguments]] ( ::: arguments | :::: argfile(s) ) ...
parallel --semaphore [options] command
#!/usr/bin/parallel --shebang [options] [command [arguments]]

DESCRIPTION
GNU parallel is a shell tool for executing jobs in parallel using one or more computers. A job can be a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, a list of URLs, or a list of tables. A job can also be a command that reads from a pipe. GNU parallel can then split the input into blocks and pipe a block into each command in parallel.
If you use xargs and tee today you will find GNU parallel very easy to use as GNU parallel is written to have the same options as xargs. If you write loops in shell, you will find GNU parallel may be able to replace most of the loops and make them run faster by running several jobs in parallel.
GNU parallel makes sure output from the commands is the same output as you would get had you run the commands sequentially. This makes it possible to use output from GNU parallel as input for other programs.
For each line of input GNU parallel will execute command with the line as arguments. If no command is given, the line of input is executed. Several lines will be run in parallel. GNU parallel can often be used as a substitute for xargs or cat | bash.

Reader's guide
Before looking at the options you may want to check out the EXAMPLEs after the list of options. That will give you an idea of what GNU parallel is capable of.
You can also watch the intro video for a quick introduction: 
http://tinyogg.com/watch/TORaR/ 
http://tinyogg.com/watch/hfxKj/ 
http://tinyogg.com/watch/YQuXd/  
http://www.youtube.com/playlist?list=PL284C9FF2488BC6D1

 

http://www.gnu.org/software/parallel/man.html


Lunes de man pages: shred

Los Lunes descanso e intentare escribir sobre un man page de un comando nuevo que haya utilizado en la semana o algo así.

Ayer recordé que un cliente nos solicito pruebas de que eliminábamos segura, ya que para el es requerido entregar prueba de que ellos lo hacen por cosas legales y blah blah.

Shred es una herramienta parte del GNU core utils y su en su codigo fuente describe su funcionamiento en una manera bastante sencilla: «overwrite files and devices to make it harder to recover data«. Les dejo la introducción al man page.

NAME
       shred - overwrite a file to hide its contents, and optionally delete it

SYNOPSIS
       shred [OPTION]... FILE...

DESCRIPTION
       Overwrite  the specified FILE(s) repeatedly, in order to make it harder
       for even very expensive hardware probing to recover the data.

       Mandatory arguments to long options are  mandatory  for  short  options
       too.
  1. http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/shred.c
  2. http://unixhelp.ed.ac.uk/CGI/man-cgi?shred+1

http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/shred.c


¿Un buen día para escribir?

Digo, que mejor podría hacer a las 12:30 am con insomnio y esperando que esta rica cerveza Noche Buena  me induzca una poco de sueño.

Trabajo.

Escribiré un poco de lo que más hago, ¡trabajo! Estoy desempolvado mis escuetas habilidades de desarrollador y estoy empezando  un sistema para poder monitorear el uso, comportamiento y otros detalles  de nuestras T1 de voz, espero pueda ser algo interesante y después lo pueda enseñar aquí. Lo estoy desarrollando en Python y usaré algún manejador de DB pero aún no decido cual.

También tengo que pensar en cómo debería ser una máquina para monitorear nuestros enlaces de Internet. Nuestros “ruteadores” tienen varias versiones de SNMP. Intente con CACTI, pero, no me está gustando.

Unix/Linux/Open-Source

Un comando interesante que conocí  hoy es pv o “Pipe Viewer” y les copio lo que hace:

pv (Pipe Viewer) can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.

Sigale leyendo sobre pv.

También sigo esperando la fecha en que podre comprar una Rasperry Pi, una caja Linux con ARM por 25 dólares, bueno, la que tiene tarjeta de red cuesta 35 dólares, aun así, suena muy prometedora.  Es del tamaño de una tarjeta de crédito, HDMI, USB y que utiliza 5 voltios de alimentación vía una entrada micro-USB.

Y es todo, creo que dormiré.


WordPress en Android

Sin duda esta es una de mejores que he usado para el Android.


OpenStreetMap parte #1.

OpenStreetMap

OpenStreetMap es el proyecto de colaboración que tiene como misión crear mapas libres y editables. Fundado en el 2004 por Steve Coast debido al alto precio en que se vendía la información cartográfica en Inglaterra.  El 22 de Agosto del 2006 queda registrada en Inglaterra y Gales como una fundación.

Creo que eso es suficiente historia del proyecto, ahora viene lo bueno, como podemos ayudar?

  1. Subiendo bosquejos obtenidos en algún dispositivo con GPS.
  2. Editando los bosquejos que subieron otros usuarios.

Este fin de semana estaré fuera de Tijuana pero la siguiente me pondré a ver que puedo hacer y lo subo como la segunda parte.

——-

Este semi-proyecto lo dejare en pausa, no esta fácil cargarle a mi celular las aplicaciones que mire.