24 March 2012

My one line script to download wallpapers from wallbase.cc


#Find a collection that you like
#Get the url and replace the url below
#Run this on the folder where you want the pictures (one line)
wget --quiet $url -O - | egrep  -o  "http://wallbase.cc/wallpaper/[0-9]*"  | while read PAGE; do wget  $PAGE -O - | egrep -o "http://ns223506.ovh.net/.*(jpg|jpeg|png)" | wget -I - ; done;



Simple but effective.

Problem?
A collection may display in multiple pages. With this script you will get the pictures of only the first page, but it is still quite some pictures (30).
I noticed that even if you browse the page and then try to save it, it will still save only the page you are in.

03 March 2012

Easy solution to ensure a strong closure of fridge door

I was researching some stuff about magnets when I had the idea of using them on the fridge/refrigerator door for an stronger closure.

My fridge doesn't have any problem, but sometimes I push it to make sure it is well closed. Now I know it is, because there is a "force" holding the door tightly closed.

My first idea after that was to search ' why fridge doors don't use magnets' and the results where that there was no good reason not to use them, and in some cases they were there but you could not see them (they were inside the plastic seal).

So I put a neodymium coin type magnet inside and another on the door, just on the inside corner of the plastic seal (to avoid creating an extra separation between door and fridge). I put some tape on them to hold them to the fridge.

It works well, and I can easily observe that if I get the door close enough to the fridge, it will SHUT itself tightly. Buala!
Too Cool for Internet Explorer