Нет, сынок, это фантастика)

Galaxy Note JellyBean

Install volume deduplication from Server 2012 to Windows 8

Server 2012  has a great feature - Deduplication. It can be very effective to optimize storage and reduce the amount of disk space consumed—50% to 90% when applied to the right data. Cause Windows 8 has a Hyper-V 3 too, deduplication will be very usefull for VM vhd storage volume. This is my VM folder example:

And this example taken from Windows 8 =) So, it's possible to install deduplication service to Windows 8 with one caveat - it'll have no GUI. Only possible way to manage it - is Powershell.


Asterisk sync with Active Directory

In my case, all users information is stored in AD (yes, we use Exchange GAL). It'll be great if asterisk get this information directly from AD without need in configuration editing.

Let's look what we have now:
AD user have fields 'telephoneNumber' - for internal extension number, 'fax' - for direct inward dialing number (DID) like this:


Reading PDF in landscape mode on Kindle Touch

Current version of firmware for Kindle Touch lacks support of landscape mode. WTF! There is jailbreak already, but no any lanscape hack. What will be very usefull for reading pdf. So, if there is no way to make it directly on Kindle, we will make it for Kindle)
I'm use k2pdfopt like this:
k2pdfopt.exe -col 1 -j 0+ -ls -ui -fc- -odpi 130 -h 711 -w 521 -om 0 -cmax 1 -s- -rt 0 -mb 0.7 %1

Let's look at them in detail:
  • -col 1 - means that there is no need to find any columns in text. If you have tables, this will helps to not break them to columns at new pages
  • -j 0+ - tries to justification text left
  • -ls - rotate page to landscape
  • -ui - run UI for making additional tuning before converting
  • -fc - don't fit columns to width
  • -odpi 130 - slightly zooming of input file
  • -h 711-w 521 - width and height of screen zone for displaying pdf. There is table for other readers.
  • -om 0 -disable output margin, Kindle Touch already has margin about 10px near pdf displaying zone
  • -cmax 1 -s- - disable increasing of contrast and sharpening. This makes fonts looks more like ClearType, with soft edges.
  • -rt 0 - disable auto determination of source orientation
  • -mb 0.7 - cut bottom margin of source in inches. This is for cutting original footer with page number etc on every source page.
  • %1 - name of source pdf
You can save this as .cmd file, and drag'n'drop your pdf files over.
Examples of source:

and 2 pages of zoomed output:



Some bash hotkeys:
Ctrl + A  Go to the beginning of the line you are currently typing on
Ctrl + E  Go to the end of the line you are currently typing on
Ctrl + L  Clears the Screen, similar to the clear command
Ctrl + U  Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + R  Let’s you search through previously used commands
Ctrl + C  Kill whatever you are running
Ctrl + D  Exit the current shell
Ctrl + Z  Puts whatever you are running into a suspended background process. "fg" restores it.
Ctrl + W  Delete the word before the cursor
Ctrl + K  Clear the line after the cursor
Ctrl + T  Swap the last two characters before the cursor
Esc + T  Swap the last two words before the cursor
Some notes about reverse history search. It'll iterative show last command for your search query. For next item press Ctrl-R again. To search forward press Ctrl-S. (On some terminals this bind to freeze, press Ctrl-Q to defreeze) More about history navigation here

Using screen:


Debian domain join

How to join Debian Squeeze to Active Directory Domain (winbind method).This makes possible to login as domain user, make samba shares with domain security, ntlm SSO to Apache sites, ntlm auth with Squid proxy.


Mail notifications by GMail from Debian

Описание настройки Debian Exim4 для рассылки почты через GMail apps for domain для получения уведомлений на почту из cron и скриптов.

Turn windows Home to Professional

Заметка для себя, дабы больше не гуглить. Минимальная версия Windows для подключения к домену - Pro.


Punto Switcher msi for GPO deployment

Сборка Punto Switcher 3.2.5 в пакет msi для установки в домене. Изменения:
  • Удален yandex update
  • При установке пытается удалить другие версии PuntoSwitcher вместе с настойками, и ярлыки в меню Пуск
  • Настройки сохраняются в папке с программой в \User Data\ для всех локальных юзеров. При установке даются права записи на эту папку для юзеров.
  • Настройки по умолчанию: автопереключение выкл., звуки выкл, Win+S убран, добавлен Shift+ScrollLock для истории буфера обмена.
  • В исключения программ добавлен IrfanView
Download Punto Switcher msi

MPC-HC msi package for GPO deployment

This is a Media Player Classic Home Cinema msi package for mass deployment in AD by Group Policy. Customizations from original version:
  • Video files associations on install for all users
  • All internal audio/video codecs enabled by default
  • Settings saved in mpc-hc.ini file for all users. When installed write rights assigned to this file for all local users
Download MPC-HC.msi
Скачать MPC-HC.msi с русским языком по умолчанию