Rénich's Blog

Creative Commons

Benchmarks: PHP, Perl, Python, Python3 and Ruby

05 de junio de 2012

Hello, guys,

It's been a while since I wrote anything in english. I want to share this simple benchmark with you. It is a simple one: print a message; followed by a number; one million times.

This is the perfect benchmark since it benchmarks the language itself. It does everything …

HowTo: Use zram on Fedora 16

12 de febrero de 2012

Ok, this one is badly documented. Even the kernel docs are outdated.

Here's how to start using zram on Fedora 16:

# get rpmfusion: http://rpmfusion.org/Configuration
...

# install the staging kmod
su -c 'yum install kmod-staging'

# get zram running (aha!)
su -c 'modprobe zram zram_num_devices=4'

# define the block's …

HowTo: Removing BtrFS from a bunch of drives (BOD)

07 de febrero de 2012

Ok, I just discovered how to remove BtrFS from a bunch of drives. It got kind of hard at first but, thanks to the #btrfs channel, I discovered how.

for device in sd{d..g}; do dd if=/dev/zero of=/dev/$device bs=4k count=1 seek=16; done …

The Pirate Bay's SOPA/PIPA Press Release

19 de enero de 2012

INTERNETS, 18th of January 2012.

PRESS RELEASE, FOR IMMEDIATE RELEASE.

Over a century ago Thomas Edison got the patent for a device which would "do for the eye what the phonograph does for

the ear". He called it the Kinetoscope. He was not only amongst the first to record video …

HowTo: Substitución de una línea completa con sed

10 de noviembre de 2011

Seguramente, alguna vez en tu vida, has querido reemplazar una línea en 300+ zonas de DNS. Claro, a todos nos ha pasado... por lo menos a todos los que no tenemos vida, eh?

Gracias a los de #fedora @ freenode por ésto (Jefe fue el autor):

sed -ri 's@SOA@s …