<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Миха &#187; Полезности</title>
	<atom:link href="http://saygak.com/post/category/tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://saygak.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 09:28:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Как перекинуть POI из GoogleMaps в Nokia Maps</title>
		<link>http://saygak.com/post/810</link>
		<comments>http://saygak.com/post/810#comments</comments>
		<pubDate>Thu, 20 May 2010 11:59:11 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[Полезности]]></category>
		<category><![CDATA[навигация]]></category>
		<category><![CDATA[нкарты]]></category>

		<guid isPermaLink="false">http://saygak.com/post/810</guid>
		<description><![CDATA[В связи с покупкой нового телефона встал вопрос как перенести POI из Google Maps в карты Nokia OVI. Благодаря оператвиной помощи поддержки Nokia решение бло найдено. Если кому-то пригодится то вот как это делается: Скачиваем бесплатную Open-Source программу GpsBabel (http://www.gpsbabel.org/download.html), которая конвертирует между собой множество форматов. У программы есть графический интерфейс, но добиться от него]]></description>
			<content:encoded><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; margin: 5px 10px 10px 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" align="left" src="http://saygak.com/wp-content/uploads/2010/05/image1.png" width="244" height="148" /> </p>
<p>В связи с покупкой нового телефона встал вопрос как перенести POI из Google Maps в карты Nokia OVI. Благодаря оператвиной помощи поддержки Nokia решение бло найдено. Если кому-то пригодится то вот как это делается: </p>
<p>Скачиваем бесплатную Open-Source программу GpsBabel (<a href="http://www.gpsbabel.org/download.html">http://www.gpsbabel.org/download.html</a>), которая конвертирует между собой множество форматов.    <br />У программы есть графический интерфейс, но добиться от него правильной кодировки в результирующем файле не удалось. Зато через командную строку все получается идеально. Вот правильный синтаксис:    <br />gpsbabel.exe -i kml -f test.kml -c utf-8 -o lmx -F test.lmx    <br />-i &#8212; формат исходного файла    <br />-с &#8212; результирующего файла    <br />-o &#8212; формат результирующего файла    <br />-f &#8212; путь к исходному файлу    <br />-F &#8212; путь к результирующему файлу.</p>
<p>Полученный в результате конвертирования файл можно передать через BlueTooth или с помощью кардридера на телефон и открыть его стандартным файловым менеджером телефона.</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/810/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book reader</title>
		<link>http://saygak.com/post/730</link>
		<comments>http://saygak.com/post/730#comments</comments>
		<pubDate>Thu, 07 Jan 2010 11:13:10 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[Полезности]]></category>
		<category><![CDATA[гаджеты]]></category>

		<guid isPermaLink="false">http://saygak.com/post/730</guid>
		<description><![CDATA[Наконец-то изобрели что-то получше нынешних уёбищных кирпичей. Встречаем Skiff Reader – 7мм, 500гр, 1600х1200точек, полный тачскрин. Все. Пойду колядовать, чтоб купить этого скифридера.]]></description>
			<content:encoded><![CDATA[<p><a href="http://saygak.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://saygak.com/wp-content/uploads/2010/01/image_thumb.png" width="417" height="261" /></a> </p>
<p>Наконец-то изобрели что-то получше нынешних уёбищных кирпичей.</p>
<p>Встречаем <a href="http://saygak.com/j8i" target="_blank">Skiff Reader</a> – 7мм, 500гр, 1600х1200точек, полный тачскрин. </p>
<p>Все. Пойду колядовать, чтоб купить этого скифридера.</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/730/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rtorrent</title>
		<link>http://saygak.com/post/564</link>
		<comments>http://saygak.com/post/564#comments</comments>
		<pubDate>Fri, 16 Oct 2009 09:48:07 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[Полезности]]></category>
		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://saygak.com/post/564</guid>
		<description><![CDATA[Enter — добавить новый torrent файл. Для упрощения ввода имени файла, можно пользоваться клавишей Tab. ^T — обновить трэкер ^Q — отключает программу, повторное нажатие закрывает программу не посылая трэкеру стоп сигнал ^N&#124;&#60;стрелка вниз&#62; — выбор следующего торрента/адреса ^P&#124;&#60;стрелка вверх&#62; — выбор предыдущего торрента/адреса ^F&#124;&#60;стрелка вправо&#62; — просмотр состояния загрузки/аплоуда торрента ^B&#124;&#60;стрелка влево&#62; — возвращает]]></description>
			<content:encoded><![CDATA[<ul>
<li>Enter — добавить новый torrent файл. Для упрощения ввода имени файла, можно пользоваться клавишей Tab.</li>
<li>^T — обновить трэкер</li>
<li>^Q — отключает программу, повторное нажатие закрывает программу не посылая трэкеру стоп сигнал</li>
<li>^N|&lt;стрелка вниз&gt; — выбор следующего торрента/адреса</li>
<li>^P|&lt;стрелка вверх&gt; — выбор предыдущего торрента/адреса</li>
<li>^F|&lt;стрелка вправо&gt; — просмотр состояния загрузки/аплоуда торрента</li>
<li>^B|&lt;стрелка влево&gt; — возвращает на предыдущий экран</li>
<li>A|S|D — увеличить скорость загрузки на 1/5/50 кб</li>
<li>Z|X|C — уменьшить скорость загрузки на 1/5/50 кб</li>
<li>a|s|d — увеличить скорость отдачи на 1/5/50 кб</li>
<li>z|x|c — уменьшить скорость отдачи на 1/5/50 кб</li>
<li>1—9 — переключение между различными группами (по состоянию загрузки)</li>
<li>^S — начать закачку</li>
<li>^D — остановить закачку (повторное нажатие удаляет торрент-файл. Данные остаются)</li>
<li>^K — закрыть торрент и его файлы</li>
<li>^E — пересоздать все файлы торрента</li>
<li>^R — перечитать хэш торрента</li>
<li>^O — изменить директорию на загрузку (торрент должен быть закрыт)</li>
<li>+|- — увеличить уменьшить приоритет загрузки торрента</li>
<li>&lt;backspace&gt; — добавить URL или путь к торренту</li>
<li>L — просмотреть лог (чтобы выйти нужно нажать пробел)</li>
<li>^X — вызвать команду или поменять настройку</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/564/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables routing NAT</title>
		<link>http://saygak.com/post/326</link>
		<comments>http://saygak.com/post/326#comments</comments>
		<pubDate>Wed, 25 Feb 2009 09:49:52 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://saygak.com/?p=326</guid>
		<description><![CDATA[noteboot (10.1.1.2)-> &#124;eth2 (10.1.1.1) &#8211; eth0 (172.20.200.33)&#124; -> gw (172.20.200.1) Linux: *) enable forwarding echo '1' > /proc/sys/net/ipv4/ip_forward *) turn NAT on iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 172.20.200.33]]></description>
			<content:encoded><![CDATA[<p>noteboot (10.1.1.2)-> |eth2 (10.1.1.1) &#8211; eth0 (172.20.200.33)| -> gw (172.20.200.1)</p>
<p>Linux:<br />
*) enable forwarding <code>echo '1' > /proc/sys/net/ipv4/ip_forward </code><br />
*) turn NAT on<code> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 172.20.200.33</code></p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/326/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Копирование файлов через ssh</title>
		<link>http://saygak.com/post/141</link>
		<comments>http://saygak.com/post/141#comments</comments>
		<pubDate>Thu, 03 Jul 2008 13:31:49 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://saygak.com/post/141</guid>
		<description><![CDATA[tar -cvf - test &#124; ssh saygak@dodger "cd /usr/home/saygak/dp; cat &#124; tar -xf - "]]></description>
			<content:encoded><![CDATA[<p><code>tar -cvf - test | ssh saygak@dodger "cd /usr/home/saygak/dp; cat | tar -xf - "</code></p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/141/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unlock user in hpux</title>
		<link>http://saygak.com/post/129</link>
		<comments>http://saygak.com/post/129#comments</comments>
		<pubDate>Fri, 30 May 2008 09:58:07 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://saygak.com/post/129</guid>
		<description><![CDATA[/usr/lbin/getprpw -l -r -m lockout username /usr/lbin/modprpw -l -k username]]></description>
			<content:encoded><![CDATA[<p>/usr/lbin/getprpw -l -r -m lockout username<br />
/usr/lbin/modprpw -l -k username</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/129/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tricks</title>
		<link>http://saygak.com/post/127</link>
		<comments>http://saygak.com/post/127#comments</comments>
		<pubDate>Mon, 26 May 2008 09:11:05 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[Полезности]]></category>

		<guid isPermaLink="false">http://saygak.com/post/127</guid>
		<description><![CDATA[remove empty lines and comments удалить пустые строки и комментарии cat /etc/ldap.conf &#124; grep -v ^# &#124; grep -v ^$]]></description>
			<content:encoded><![CDATA[<p>remove empty lines and comments<br />
удалить пустые строки и комментарии<br />
<code> cat /etc/ldap.conf | grep -v ^# | grep -v ^$</code></p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/127/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>узлы для галстуков</title>
		<link>http://saygak.com/post/120</link>
		<comments>http://saygak.com/post/120#comments</comments>
		<pubDate>Wed, 23 Apr 2008 09:44:26 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[Всякое]]></category>
		<category><![CDATA[Полезности]]></category>
		<category><![CDATA[бытовое]]></category>
		<category><![CDATA[галстук]]></category>

		<guid isPermaLink="false">http://saygak.com/post/120</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href='http://saygak.com/wp-content/uploads/2008/04/tie.jpg' title='tie.jpg'><img src='http://saygak.com/wp-content/uploads/2008/04/tie.thumbnail.jpg' alt='tie.jpg' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/120/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>качаем и распаковываем</title>
		<link>http://saygak.com/post/75</link>
		<comments>http://saygak.com/post/75#comments</comments>
		<pubDate>Tue, 16 Jan 2007 06:52:32 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>

		<guid isPermaLink="false">http://saygak.com/post/75</guid>
		<description><![CDATA[tail -f -b=1m ports.tar.gz &#124; tar -zxvf ports.tar.gz]]></description>
			<content:encoded><![CDATA[<p>tail -f -b=1m ports.tar.gz | tar -zxvf ports.tar.gz</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/75/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Мониторим процесс на удаленной системе</title>
		<link>http://saygak.com/post/74</link>
		<comments>http://saygak.com/post/74#comments</comments>
		<pubDate>Tue, 16 Jan 2007 06:51:56 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>

		<guid isPermaLink="false">http://saygak.com/post/74</guid>
		<description><![CDATA[xmessage -nearmouse `ssh orion &#8216;ps -p 336598 > /dev/null; retval=$?; if [ $retval -eq 0 ] ; then echo &#171;DONE&#187;; fi&#8217;`]]></description>
			<content:encoded><![CDATA[<p>xmessage -nearmouse `ssh orion &#8216;ps -p 336598 > /dev/null; retval=$?; if [ $retval -eq 0 ] ; then echo &laquo;DONE&raquo;; fi&#8217;`</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/74/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL user managem</title>
		<link>http://saygak.com/post/73</link>
		<comments>http://saygak.com/post/73#comments</comments>
		<pubDate>Sun, 07 Jan 2007 16:00:49 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>

		<guid isPermaLink="false">http://saygak.com/post/73</guid>
		<description><![CDATA[GRANT ALL PRIVILEGES ON *.* TO &#8216;monty&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;some_pass&#8217; WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO &#8216;monty&#8217;@'%&#8217; IDENTIFIED BY &#8216;some_pass&#8217; WITH GRANT OPTION; GRANT RELOAD,PROCESS ON *.* TO &#8216;admin&#8217;@'localhost&#8217;; GRANT USAGE ON *.* TO &#8216;dummy&#8217;@'localhost&#8217;;]]></description>
			<content:encoded><![CDATA[<p>GRANT ALL PRIVILEGES ON *.* TO &#8216;monty&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;some_pass&#8217; WITH GRANT OPTION;</p>
<p>GRANT ALL PRIVILEGES ON *.* TO &#8216;monty&#8217;@'%&#8217; IDENTIFIED BY &#8216;some_pass&#8217; WITH GRANT OPTION;</p>
<p>GRANT RELOAD,PROCESS ON *.* TO &#8216;admin&#8217;@'localhost&#8217;;<br />
GRANT USAGE ON *.* TO &#8216;dummy&#8217;@'localhost&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UA-IX в ipfw</title>
		<link>http://saygak.com/post/72</link>
		<comments>http://saygak.com/post/72#comments</comments>
		<pubDate>Sun, 07 Jan 2007 15:59:40 +0000</pubDate>
		<dc:creator>Michael Saygak</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[Полезности]]></category>

		<guid isPermaLink="false">http://saygak.com/post/72</guid>
		<description><![CDATA[ckear_ipfw: ====================== #!/bin/sh n=999 while [ $n -lt 3000 ] do n=`expr $n + 1` m=`expr $n + 3000` ipfw delete $n ipfw delete $m done ====================== update_ipfw ====================== #!/bin/sh fetch http://noc.ua-ix.net.ua/ua-list.txt awk &#8216;{i=1000; while(getline) { if($1 ~ /d*.d*/) { net = $1 if(net ~ /.0$/) net = net&#187;/24&#8243; system (&#171;ipfw add &#187; i &#187;]]></description>
			<content:encoded><![CDATA[<p>ckear_ipfw:<br />
======================<br />
#!/bin/sh<br />
n=999<br />
while [ $n -lt 3000 ]<br />
do<span id="more-72"></span><br />
n=`expr $n + 1`<br />
m=`expr $n + 3000`<br />
ipfw delete $n<br />
ipfw delete $m</p>
<p>done<br />
======================</p>
<p>update_ipfw<br />
======================<br />
#!/bin/sh</p>
<p>fetch http://noc.ua-ix.net.ua/ua-list.txt</p>
<p>awk &#8216;{i=1000;<br />
while(getline)<br />
{ if($1 ~ /d*.d*/)<br />
{<br />
net = $1<br />
if(net ~ /.0$/) net = net&raquo;/24&#8243;<br />
system (&laquo;ipfw add &raquo; i &raquo; allow ip from &raquo; net &raquo; to me via rl0&#8243;);<br />
system (&laquo;ipfw add &raquo; i+1 &raquo; allow ip from me to &raquo; net &raquo; via rl0&#8243;);</p>
<p>system (&laquo;ipfw add &raquo; i+3000 &raquo; count ip from &raquo; net &raquo; to me via rl0&#8243;);<br />
system (&laquo;ipfw add &raquo; i+3001 &raquo; count ip from me to &raquo; net &raquo; via rl0&#8243;);<br />
i=i+2;<br />
}<br />
}<br />
}&#8217;<br />
ua-list.txt<br />
======================</p>
]]></content:encoded>
			<wfw:commentRss>http://saygak.com/post/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

