Categoría : Noticias internas

When you think everything is lost…

I have seen people many times doing something like this: $cat binary_file The problem with the above is that usually you end up with a prompt that looks like this: �g`�g���i`�i��k`�kX@l`(l � Whatever you type, you get garbage in your terminal. In this case, what most people do is to despair and close the terminal, […]

Leer Más →

Make colored output

I found a nice script in stackoverflow about how to color the output of make in bash. It works by filtering the output and looking for certain expressions to highlight. Placing this function definition in your .bashrc file defines a bash make function which gets executed instead of the command. This way we can shadow […]

Leer Más →

How to find alive hosts in our network

Sometimes I need to know all the alive hosts’ IP addresses in the LAN I am connected. The following command will show that information: $ nmap -n -sP 192.168.10.0/24 Starting Nmap 5.21 ( http://nmap.org ) at 2012-08-05 11:24 BST Nmap scan report for 192.168.10.1 Host is up (0.00086s latency). Nmap scan report for 192.168.10.40 Host […]

Leer Más →

gdb & nice Vim macro

Imagine we have a simple program like the one below: #include <stdio.h> int main(int argc, char **argv) { char *str = “Hello guys, this is just a bit large string to test a nice Vim macro”; printf(“%sn”, str); return (0); } This program is pretty simple, but it will serve its purpose. Imagine we have […]

Leer Más →

Dash dash…

There are some situations when someone messes up with his text editor, file browser or shell and ends up creating a file called something like “-test”. Selecting the file on the file browser and pressing “Delete” should eliminate it. However, as you will probably have noticed, this blog is called “commandliners” so I am going […]

Leer Más →

ASCII codes in Vim

Today, a work mate asked if anyone had an ASCII code table at hand. He was editing a file in Vim and wanted to know the ASCII code for a certain character. Here is the answer: While having the cursor on the character, type: <ESC>:ascii<ENTER> Enjoy!

Leer Más →

Las Falacias de los Defensores de la Propiedad Intelectual

por Luis Flores
CEO de Opensistemas
Jesús Fernández-Villaverde propone un post excelente en Las Falacias de los Defensores de la Propiedad Intelectual, dentro del marco de uno de mis blogs de cabecera, http://nadaesgratis.es/, un blog muy recomendable diría yo, de los pocos blogs donde los que comentan a veces son más brillantes que los que escriben […]

Leer Más →

Enfocando a negocios

En los últimos tiempos he ampliado el tipo de negocios en los que estoy invirtiendo. Ya no está todo enfocado a Software Libre y negocios similares. Entre mis más recientes negocios se encuentra una Parafarmacia, un medio de comunicación o una tienda física en Madrid relacionada con “aromas” (ambientadores, velas, jabones, etc). Por otro lado, […]

Leer Más →

1 2 3 4 5 10