Monthly Archives: February 2012

[debian] apt-get install specific version of package

When you’re adding additional repositories beside the default in your /etc/apt/sources.list, Debian will provide more than one version of package where available. You can use “apt-cache policy package-name” to check the package’s available version. For example, you want to check available ffmpeg version on your repositories, you can use this command:

If you add additional repositories other than default, you may have several version of ffmpeg. This one is the output example on my server (I add debian-multimedia and backports repository beside the default):

Those lines above show you which ffmpeg version is already installed and which one is available on other repository.
Suppose you want to install ffmpeg version 5:0.7.11-0.1 from debian-multimedia repository, you can use this command:

Notice that I put “=” and the version number [omitting the last number (0)] after the package name. That apt-get command will install ffmpeg from debian-multimedia and removing the one from backports that already installed.
When a package have some configuration file (such as Apache with it’s apache2.conf), apt-get will ask you whether to keep your current configuration or use the new version (overwrite the old one). review

What is is kind of with a little twist. You got paid when you shorten your URL.

What’s the difference between and
There are some pros regarding compared to other paid-URL-shorter:

  • there is other ways other than shorting your URL to collect money: placing banner ads and pop-up ads (and referral)
  • eCPM rate is way too high compared to — even for Asian-based country. I can make $24 per day using compared to $16 a day using
  • instant payment, no need to wait until end of the month until you got paid. Once you requested payment, the system will process your request and send you payment within days. They promised instant payment after request! My first payment came after 2 days of requested time. payment proof?
This is my first payment from payment proof

first payment from

Do you still use it?
NO! Why? Because only paid me on my first request, my second and third request just being ignored by them. Here’s my request screen shot:

scammed by

my pending payment requests

As you can see, my second request had been longed for more than 2 weeks (remember that they promised instant payment) and still no money coming to my paypal. That’s enough reason for me to lift their ads code from my site and move on.

Final words: Stay away from, it’s highly likely a scam!

find file based on its content

On my last post I’ve mentioned tool called Agent Ransack for Windows that has ability to search file based on it’s content (and other criteria such as modification time). On Linux, there’s no need to install additional package/application. There is already a command line tool that will do the trick, i.e. grep.

For example, you want to find all php files in the current folder and its subfolder that contain word “stat

Parameters explanation:
–color=auto : this will made the word ‘stat‘ highlighted
-i : ignore pattern case (case in-sensitive — the pattern is ‘stat’)
-nH : show filename and the line number

grep example output

example output

If you want to add file modification time as the other criterion, you must combine find and grep command.
For example, you want to search all php files in the current folder and its subfolder that contain word ‘stat‘ and the file was last modified within less than one day a go:

Please refer to find man pages for more option about file modification/access/creation time options.

Pro tips using is a website that provide free service to convert your Youtube video into an mp3, mp4, flv, 3gp and avi. The converted video then can be downloaded into your PC or mobile phone.

Tips #1 : Access faster simply by changing “” into “” in your video URL.
you want to convert this video: into an mp3, you just need to change word “” from the URL into “”, so, your new URL would be:
Open this new URL into your browser, see what happened 😀

Tips #2: this is complementary for tips #1, suppose you want to convert to other format other than mp3, you need to add “&hq=” into your new URL. This is the full list of “&hq=” value:
&hq=0 –> convert into mp3 (192kbps)
&hq=1 –> convert into mp3 (256kbps)
&hq=2 –> convert into flv
&hq=3 –> convert into 3gp
&hq=4 –> convert into mp4
&hq=5 –> convert into avi

you want to convert this video: into an mp4, you just need to change word “” from the URL into “” and add “&hq=4” into the URL, so, your new URL would be:
Open this new URL into your browser, see what happened 😀

Tips #3: bypass ads. If you, for some reason (such as: the countdown counter did not work), do not want to see ads when you click on “DOWNLOAD” button, then do not click the “DOWNLOAD” button. Instead, wait for 60 seconds and then the download will start automatically without needing to see any ads.

Tips #4: always download the file from using download accelerator. It is compatible for most common download accelerator. If you don’t want to install any, you can always use DownThemAll add-on for Firefox.


That’s it for now.. I’m tired…

find out disk space used by certain type of files

It’s very easy to check how much does certain files occupied your hard disk space. I’m using this technique before moving my files to other host to estimate how long will it takes to do some transfer. We will use find command to do this (and some pipelining)

What does it means?
the “find” command will search for all files matching (case-insensitive) pattern *.mp3 beginning from the current directory. For each file name found, do “du -b” on that file (it means: show the file size in bytes). Then “awk” will summarize all of the files size then at the end, show it to user. The total result would be in bytes.