chuso.net

Linux kernel module that allows you to set events on pressed keys

As a probe of the use of kprobes for Extension of Operating Systems I have made a Linux module that allows you to execute a command for every pressed key and see its keycode.

It includes some sample scripts that can be used as the command to be executed on every key pressed, these scripts are:

  • keylogger

    Registers every pressed key in a file.

  • printscr

    If framebuffer is enabled it allows doing a console screenshot using print screen key.


Portage sound notifications

The context: you run emerge with --ask parameter and, since it can take some time to calculate dependencies, you do some other thing. After a while, when you've forgotten it, you discover that emerge have ended calculating dependencies time ago and it's waiting for your confirmation when it could be already done. Has this ever happened to you? Me too. This is why I added sound notifications to some Portage events.


George Parr explains financial crisis


D Crepes Maker

Fonzu @ work.

Chuso Gentoo Overlay

The fact is that, with ebuilds for new packages that I submitted to Bugzilla, the ones I modified with patches of my interest, those removed from Portage, some I made for my scripts and others, I collected a few ebuilds now I compile and release in an overlay for Portage.

Some of the included packages are:

In order to see the full list of packages and installation instructions visit the project web page.


Looking for modified files in Gentoo packages

Did you know that teTeX development was abandoned more than two years ago? And it's recommended to migrate to TeX Live. When I was doing so by reading the Gentoo Linux guide I found that it says: if you have modified configuration files under /etc/texmf.... How will I know that? I modified many configuration files and I can't remember which ones I've modified. I thought about using equery to check that, but I only know the command to check all the files in a package, not a single file, so I thought that it would be easier to do my own script than to read the whole equery man page. So here it is, the script that checks if certain files in a package were modified:


RapidShare premium download with Opera

I must blame Fonso again, because he asks me about something like FlashGot but for Opera in Linux, i.e., a way to be able to select a block of RapidShare URLs to download them with a premium account with a download manager. So when I didn't find anything, I started with it.

I finally got a bash script that receives a list of links as parameters and adds them to Aria with a RapidShare premium account. Using aria was not a choice, since it was the only one, apart from wget, that supports RapidShare premium accounts (i.e., HTTP authentication) without problems.


Advertising creativity

OK, I can't boast about my creativity since it tends to zero, but this why I'm not a publicist.


Looking for the perfect hosting

This is a post that was in my ToDo list 'cause I said I will leave SDF-eu to be hosted at HyperPHP because I've read they offer free PHP and MySQL without advertisements. And according to my latest comment, it seems that I was satisfied with that server, but the story didn't finish yet. This server does include banners and pop-ups in hosted pages, but I didn't notice because I had blocked their advertisements.


Blocking advertisements and malware in Opera

Website with banners

Do you remember the web 15 years ago? The advertisements were almost unknown, like spaghetti webs. As the web became more popular and with the dot-com boom it was needed a way to finance so much hype, and then was when massive advertisements arrived.

Nowadays we are in a situation where, except some blogs and personal webpages is hard to find a webpage which doesn't have, at least, some Adsense block, which is not the worse we can find, because then there are pop-ups, ads trying to install malware or that epileptic scams. And cases like Terra, which joins many of the features cited previously (spaghetti web born with dot-com bubble with a high mediatic hype and following crash) with rectangle ads which break its confusing layout. Or other sites with so many advertisements (usually focused on the same topic) that it's hard to find page contents.