How to setup a private git repository on Debian using Gitosis
In this post I’m going to give you step by step instructions of how to setup your own git repository. I’ve got a VDS (Virtual Dedicated Server) running on Debian 6.0.4, but all steps are valid for Ubuntu too.
First of all we should setup all necessary tools including git:
apt-get install git python-setuptools python-dev
After that, get gitosis sources. Official repository git://eagain.net/gitosis.git stopped working, so use github repository instead:
git clone https://github.com/tv42/gitosis.git cd gitosis python setup.py install
How to make an iPhone ringtone from an mp3 file?
Ok, everybody. This post is for those of you who don’t want to buy iPhone ringtones in AppStore. The cheapest way to get a ringtone is to make it by ourselves. Here is a step-by-step instruction how to make and install an iPhone ringtone from an mp3-file.
- First of all you should have an mp3-file which is the best ringtone ever. Keep in mind that your ringtone’s length should be 30 seconds or less. It’s important. If you need to cut some part of the mp3-file, you can use simple Web 2.0 utility on CutMP3.net
- Open iTunes and drag-n-drop the mp3 file from Explorer/Finder/etc to the iTunes Library. It will appear in the Music list.
- Now let’s go to the iTunes Preferences -> General and click on Import Settings button. This will open a dialog.
- In the dialog set Import Using as AAC Encoder and click OK and click OK again on the Preferences dialog.
- We’re very close to the finish now. Go to Music and select the mp3-file you added on step 2. In the context menu select Create AAC Version

- Select just created file and select Get info from context menu. You will see a dialog. Look at Summary tab and you will find where the converted file is located.

- Go to the file and change its extension from m4a to m4r.
- Drag-n-drop the m4r file to iTunes as we already did on step 2 and you’ll notice that you have it in Tones section.
- Connect your iPhone to iTunes and drag-n-drop the ringtone from the Tones section to the iPhone section. That’s all!
Google Chrome redirecting Google Search to wrong country
I’ve been using Google Chrome since 2009 and one thing I like and use the most is a googling just inside URL-bar. Some month ago Google started to detect my location automatically and redirect me to appropriate google domain. For instance, I live in Germany and I’d like to use google.com but Google Chrome redirects me to google.de every f*cking time I search something in URL-bar. If you have the same problem as I had the workaround is simple. Go to Google Chrome Options -> Basics and click “Manage search engines”. Add a new one with any name and keyword, but the URL should be
https://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=%s
Make just created search engine default and that’s it! Enjoy.








