#DNS requests are executed via ppp0. It has DNS 10.20.1.1 #for cases when DNS request is sent via TCP protocol iptables -t nat -A PREROUTING -p tcp -d 192.168.1.201 --dport 53 -j DNAT --to-destination 10.20.1.1:53 iptables -t nat -A POSTROUTING -p tcp -d 10.20.1.1 --dport 53 -j SNAT --to-source 10.97.10.58 #for cases when DNS request is sent via UDP protocol iptables -t nat -A PREROUTING -p udp -d 192.168.1.201 --dport 53 -j DNAT --to-destination 10.20.1.1:53 iptables -t nat -A POSTROUTING -p udp -d 10.20.1.1 --dport 53 -j SNAT --to-source 10.97.10.58
snnicky
Sunday, September 5, 2010
Как настроить DNS на linux шлюзе
Sunday, August 29, 2010
Обновление Ubuntu из командной строки
Обновить кэш, базу знания о том, что находится в репозиториях:
sudo apt-get update
Аналогом обновления через графический менеджер обновлений в консоли являются две команды:
sudo apt-get upgrade
и
sudo apt-get dist-upgrade
Выполнять нужно обе команды!
Tuesday, August 17, 2010
Создание копии аудио диска и rip диска
#конвертируем cd1.toc в cd1,cue cueconvert -i toc -o cue cd1.toc cd1.cue #конвертируем cd1.bin в cd1.flac flac --cuesheet=cd1.cue --best --endian=big --sign=signed --channels=2 --bps=16 --sample-rate=44100 --verify cd1.bin #разбиваем cd1.flac на отдельные песенки cuebreakpoints cd1.cue | shnsplit -o flac cd1.flac
Saturday, March 29, 2008
Site Theme Color Editor (SiTCE)
Site Theme Color Editor v0.0.2 is ready for download.
The purpose of the program is to help customize WordPress theme. For example you found a WordPress theme you like, but would like that to be a bit darker. Or modify main colors. In these cases our program tries to help you.
What's new in this version:
- Modifications to run the program easier. That now asks less questions.
- You may specify your favorite theme folder in preferences file. This helps if you run the program many times.
- The physical size of modified images is expected to be smaller than produced by previous program version.
How this program works.
- You need Adobe Photoshop installed to run the program.
- Download from http://sourceforge.net/projects/sitce/ and unzip the program.
- Run Photoshop and open original screen-shot of the theme you'd like to modify.
- Open Hue/Stauration Dialog via main Photoshop menu [Image]->[Adjustments]->[Hue/Saturation] (or press Ctrl+U). And experiment with different hue, saturation and lightness shifts.
- Remember the values you prefer and run the downloaded program the following way:
- In main Photoshop menu select [File] ->[Scripts]->[Browse].
- Navigate to the folder where you unzipped the downloaded program.
- Open SiTCE-photoshop.jsx file. (File extension may be hidden because of your OS settings.)
- Specify the folder with the WordPress theme to modify (please backup the theme before applying any modification.)
- Specify desired hue, saturation and lightness shifts.
- Click OK button.

That's all.
Here is the result of applied -55 Hue and -13 Saturation shift to "WordPress Default 1.6" theme:
Tuesday, March 4, 2008
When you may need SiTCE
Possible situations when you may need the SiTCE:
- You found a WordPress theme in green color and want to make it red or blue instead.
- You found a WordPress theme with perfect controls layout, with nice rounded corners but you want it to be another colors.
- You found a perfect WordPress theme, adapted that to your taste by shifting theme hue, saturation or lightness and you want to update theme code easily switching to the latest version of the theme.
In all these cases it is possible to modify the theme source code manually. But if you don't know css and do not want to spend time digging the theme css and if you want to save your time. You may use SiTCE to automate the procedure.
Please let us know what is your experience of using SiTCE.
Thank you.
Wednesday, November 7, 2007
Забавные поисковые запросы
Месяц | Победитель месяца | Колличество различных поисковых запросов |
---|---|---|
2006г. Сентябрь | - | 0 |
2006г. Октябрь | - | 12 |
2006г. Ноябрь | - | 32 |
2006г. Декабрь | where is my rss feed in cordoba green park | 46 |
2007г. Январь | bar | 42 |
2007г. Февраль | tis620 | 21 |
2007г. Март | www.biker-events.com | 52 |
2007г. Апрель | детектор лжи в минске | 65 |
2007г. Май | Программа для дигностики двигателя ford sierra 2.0i 1989 г. | 97 |
2007г. Июнь | Компьютерное обследование организма плюсы и минусы | 54 |
2007г. Июль | пить или не пить | 53 |
2007г. Август | Купил больничный в поликлинике | 68 |
2007г. Сентябрь | - | 21 |
2007г. Октябрь | хочу сниматься в рекламах в Минске | 77 |
2007г. Ноябрь | фото белки возле компьютера | 96 |
2007г. Декабрь | Интересные вопроы к парню | 95 |
2008г. Январь | СДелать себя как в souce park | 102 |
2008г. Февраль | цена школьная доска минск | 93 |
2008г. Март | фото белка за компьютером | 119 |
2008г. Апрель | врач попросила раздеться | 127 |
2008г. Май | каморка wikipedia | 103 |
2008г. Июнь | забавно | 99 |
2008г. Июль | фото белки и компьютер | 86 |
2008г. Август | забавные фотографии белок | 100 |
2008г. Сентябрь | sql syntax общение | 124 |
2008г. Октябрь | плюсы и минусы мультика Саус парк | 131 |
2008г. Ноябрь | купить детектор лжи в Минске | 141 |
2008г. Декабрь | забавные фотографии с деньгами | 113 |
2009г. Январь | АДРЕСА В МИНСКЕ КОМПЬЮТЕР ГОЛОВНОГО МОЗГА | 134 |
2009г. Февраль | где купить больничный в домодедово | 151 |
2009г. Март | ЧТО ТАКОЕ bl ПЕЧЕНИ | ? |
Tuesday, August 7, 2007
Забавные фотографии
Фотографии сделаны мной или при моем непосредственном участии.
Прайс цен. |
![]() |
Минск, пр-т Рокоссовского. 25 июня 2005г. |
Я не лингвист. Но все же это словосочетание кажется мне несколько некорректным. |
Наш ответ наркотикам нет! |
![]() |
Минск, пр-т Рокоссовского, магазин Лазурит. 15 июля 2005г. |
Наверное надо было купить и попробовать. Но как-то стрёмно на мороженное так по глупости подсесть :). |
Меняю на деньги. |
![]() |
Минск, ул. Фабрициуса. 27 июля 2005г. |
Могу себе позволить. |
![]() |
Москва, аэропорт Домодедово. 11 сентября 2005г. |
Реклама должна запоминаться. |