Archive > Tag: FOSS

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: Appfirst with SELinux enabled

Ok, first off, I hate people that say "turn off SELinux"... man, those idiots might as well tell you to turn off your firewall and open up your servers to the world.

This sounds like a nice gesture but, in today's internet, it's a shortcut to online suicide.

Anyway, here'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 …


LemonPOS: Cómo instalarlo en Fedora 16

Edición 20120608: En Fedora 17, ya está en los Repos. Solo basta un yum -y install lemonpos

Un bato (Alejandro), me dijo que quiere instalar LemonPOS y que, éste, está chido.

Me doy cuenta de que lo hace un Mexicano! Ajuá!A webo! Y que está en pinche C++! Mejor …


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 …

F/Red: Fedora/Red Hat Electric Devices

Ok, this idea woke me up: https://fedoraproject.org/wiki/User:Renich/Projects/Fed

I think Fedora/Red Hat could get into the device realm. Who would buy a Fedora/Red Hat tailored laptop? Imagine that? Or maybe an audio player? Or a phone?

Raw Ideas

Laptops and PCs

  • Upgradeable …

LinuxCabal: Thank you, CloudSigma, for a wonderful year!

Ah, yes, it's been more than a year without downtime and that is because we host ourselves in CloudSigma.

I remember the first days, right after Rackspace and all. http://imat.com/richard/index.html was very uncertain about "The Cloud". He disliked http://www.rackspace.com/ and kept saying …


HowTo: Cómo alterar todas las tablas de una DB de MySQL

Hoy necesité alterar las 130 tablas de una DB. Se hizo así:

#!/usr/bin/env bash

mysql -B -N -h mysql1 -u root --password="YourSuperPassword" my_db -e "show tables" | while read db; do
    mysql -h mysql1 -u root --password="YourSuperPassword" my_db -e "alter table $db character set utf8 collate utf8_general_ci …