среда, 5 марта 2014 г.

Vim CtrlP performance bad

As the subjects says, there are big issues with CtrlP plugin when it used on a huge projects, for example with 350000 files in deep directory structure.


To improve match performance I wrote plugin called ctrlp-py-matcher. It's logic is written in python inspired by this blogpost.

In some cases on the same hardware, performance increased up to x22 - 15sec latency for standard matcher and 700ms for mine.

All possibly issues and suggestions please post on github issues page, thank you.

понедельник, 24 февраля 2014 г.

Ubuntu Server: fix network adapter when wifi bridged

When you has laptop with ubuntu-server based virtual box, and its connection represented as bridged wi-fi connection, than you can often get this error when change your physical location:

$ ping google.com
ping: unknown host google.com
The problem is in `/etc/udev/rules.d/70-persistent-net.rules` file, you can mv/rm it and then do system restart. If the problem still exist you can also check `ifconfig` command and `/etc/network/interfaces`, to correct interfaces - sometimes for no reason they can be auto renamed to ethN+1.