Archive > Tag: Creative Commons

Benchmarks: PHP, Perl, Python, Python3 and Ruby

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

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)

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

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

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 …