Tag Archives: snippet

Slow netbooks: How to convert H.264 HD movies to lower quality (but faster) DivX

What if you want to play a HD movie on a netbook? I tried it on my acer 532h, and it’s lagging; mplayer complains about the machine being too slow. The problem maybe isn’t the high quality per se, but … Continue reading

Posted in Linux | Tagged , , , , , , , , | Leave a comment

Ruby enumerators (and a script to list all Google search results)

A while ago I carefully crafted a google searcher in sed and shell script. Making scripts for doing http requests is cool! (I say carefully because it is a pain to parse HTML with regular expressions :)) The Code Nokogiri … Continue reading

Posted in Ruby | Tagged , , , , , , | Leave a comment

Running your own dns cache on Debian (with djbdns)

Run as root: aptitude install djbdns dnscache-run mv /etc/resolv.conf /etc/resolv.conf.orig echo nameserver > /etc/resolv.conf Then configure your connection to not update /etc/resolv.conf upon each connection (I use pppoe to connect to adsl, so I needed to comment the line … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

How to write random data to the hard drive with dd

Note: the script posted here is a bit buggy. There is an improved version on a newer post. Since I bought my netbook (an Acer Aspire One 532h-2514), I’m considering encrypting all my data. After some searching, I found that … Continue reading

Posted in Linux | Tagged , , , , , , , | 5 Comments