Archive for the ‘Hacks’ Category

Ubuntu Alarm

Posted on August 10th, 2008 in Hacks, Ubuntu, linux | No Comments »

I had been looking for some alarm related software in Ubuntu, and i had found a solution using vlc together with cron job, so i had made my own alarm.

First Create a shell script
> sudo gedit alarm.sh
> Enter the following
#!/bin/sh
/usr/bin/amixer -c 0 sset Master,0 99%
/usr/bin/vlc --intf dummy --repeat /home/almond/gising.mp3
> Save and exit
> chmod +x ./alarm.sh

What this does is create a file what will set the mixer to 99 volume (amixer -c 0 sset Master,0 99%) and call vlc to play your mp3 using a dummy interface module (no interface inshort) and repeat the music unlessly. Then make the file executable.

Next stuff is to make an automatic/cron job for you (by default this will use vim as editor)
If the following does not work, follow the alternative instruction
> crontab -e
> press i to insert the following line
* 7 * * 1,2,3,4,5 /path/to/alam.sh
> exit vim (esc then :wq)

(This will make the alarm every 7am from monday to friday)

Fujitsu Computer Systems Corporation

Alternative instruction
> touch crontab
> gedit crontab
> Enter the following
* 7 * * 1,2,3,4,5 /path/to/alam.sh
> crontab -u crontab
> sudo /etc/init.d/cron restart

What this does it create a new cron file under you username and restart the cron process.

If you want a more simple approach try this one
http://alarm-clock.pseudoberries.com/, there is a guide on how to install it on linux.

I used the cron approach, now how to stop the music?
This will be fun coz you have to really wake up and type something or open system monitor to stop all vlc. If you cannot locate your system monitor then type these commands
> top
memorize the process id of vlc and press q
> kill -9

Hope this does wake you up, just don’t go back to bed after stopping the music.

Download All Rapidshare Link At Once

Posted on July 1st, 2008 in Hacks, Technology, linux | 2 Comments »

Update: Thanks to Thomas, we could use the linkify addon
https://addons.mozilla.org/en-US/firefox/addon/7878

Sometimes you might stumble on some sites where gives you a list of rapidshare link (not really a link) and you want to download all of it, you cant do Ctrl + click, or Open All Urls in new tab on firefox tab mix plus. So how to do it? This requires you to use the terminal, vi, premium Rapidshare account and Unix base OS (sorry windows user, you can still do this but your on your own).
Read the rest of this entry »

Google Gadget on Ubuntu Heron

Posted on June 6th, 2008 in Hacks, Technology, linux | No Comments »

This is how i installed Google Gadge on Ubuntu Heron. Hope it helps.
Read the rest of this entry »

Phpbb3 Adsense version 2

Posted on June 26th, 2007 in Hacks | No Comments »

Its been a while since i last blog, hah, been so busy. These are the new ways of how i manage to add google adsense in phpbb3
Read the rest of this entry »

Adsense in phpBB3

Posted on May 19th, 2007 in Hacks | 5 Comments »

I was experimenting with phpBB3 and I was looking for hacks that would insert google adsense.
There are some hacks out there but I want to show you how I did it.